mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Merge pull request #4972 from davidtaylorhq/details-integration-test
Fix for the last broken discourse-details qunit test
This commit is contained in:
commit
b512ffa9eb
1 changed files with 7 additions and 7 deletions
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue