UX: Copy selected text to the link building modal

This commit is contained in:
Vinoth Kannan
2018-01-24 02:02:12 +05:30
parent 782d75069e
commit 86e142b39f
2 changed files with 8 additions and 0 deletions

View File

@@ -248,6 +248,9 @@ testCase('link modal (simple link) with selected text', function(assert, textare
textarea.selectionEnd = 12;
click('button.link');
andThen(() => {
assert.equal(this.$('input.link-text')[0].value, 'hello world.');
});
fillIn('.insert-link input.link-url', 'http://eviltrout.com');
click('.insert-link button.btn-primary');
andThen(() => {