mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +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:
@ -30,7 +30,7 @@ QUnit.test("update some fields", assert => {
|
||||
savePreferences();
|
||||
|
||||
click(".preferences-nav .nav-notifications a");
|
||||
selectDropdown('.control-group.notifications select.combobox', 1440);
|
||||
selectKit('.control-group.notifications .combo-box.duration').expand().selectRowByValue(1440);
|
||||
savePreferences();
|
||||
|
||||
click(".preferences-nav .nav-categories a");
|
||||
@ -72,4 +72,4 @@ QUnit.test("email", assert => {
|
||||
andThen(() => {
|
||||
assert.equal(find('.tip.bad').text().trim(), I18n.t('user.email.invalid'), 'it should display invalid email tip');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user