mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 11:41:03 +08:00
Fix for the last broken discourse-details qunit test
This commit is contained in:
@ -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');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user