Merge pull request #4972 from davidtaylorhq/details-integration-test

Fix for the last broken discourse-details qunit test
This commit is contained in:
Guo Xiang Tan
2017-07-12 09:12:09 +09:00
committed by GitHub

View File

@ -71,8 +71,8 @@ test('details button', (assert) => {
andThen(() => {
const textarea = findTextarea();
textarea.selectionStart = 7;
textarea.selectionEnd = 28;
textarea.selectionStart = 8;
textarea.selectionEnd = 29;
});
click('button.options');
@ -86,7 +86,7 @@ test('details button', (assert) => {
);
const textarea = findTextarea();
assert.equal(textarea.selectionStart, 26, 'it should start highlighting at the right position');
assert.equal(textarea.selectionEnd, 46, 'it should end highlighting at the right position');
assert.equal(textarea.selectionStart, 27, 'it should start highlighting at the right position');
assert.equal(textarea.selectionEnd, 47, 'it should end highlighting at the right position');
});
});