mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
select-kit refactoring
* better test helper * more reliable tests * more consistent use of data-value/data-name/title/aria-label everywhere: header and rows
This commit is contained in:
@ -262,8 +262,8 @@ QUnit.test("Composer can toggle between edit and reply", assert => {
|
||||
QUnit.test("Composer can toggle between reply and createTopic", assert => {
|
||||
visit("/t/this-is-a-test-topic/9");
|
||||
click('.topic-post:eq(0) button.reply');
|
||||
expandSelectKit('.toolbar-popup-menu-options');
|
||||
selectKitSelectRow('toggleWhisper', { selector: '.toolbar-popup-menu-options'});
|
||||
|
||||
selectKit('.toolbar-popup-menu-options').expand().selectRowByValue('toggleWhisper');
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(
|
||||
@ -285,8 +285,7 @@ QUnit.test("Composer can toggle between reply and createTopic", assert => {
|
||||
);
|
||||
});
|
||||
|
||||
expandSelectKit('.toolbar-popup-menu-options');
|
||||
selectKitSelectRow('toggleInvisible', { selector: '.toolbar-popup-menu-options'});
|
||||
selectKit('.toolbar-popup-menu-options').expand().selectRowByValue('toggleInvisible');
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(
|
||||
|
Reference in New Issue
Block a user