[WIP] select-box-kit refactoring

This commit is contained in:
Joffrey JAFFEUX
2017-10-19 12:51:08 -07:00
committed by GitHub
parent a9f718fe57
commit ae1743c61f
157 changed files with 3262 additions and 2404 deletions

View File

@ -23,17 +23,18 @@ QUnit.test("Updating topic notification level", assert => {
andThen(() => {
assert.ok(
exists(`${notificationOptions} .tracking`),
exists(`${notificationOptions}`),
"it should display the notification options button in the topic's footer"
);
});
click(`${notificationOptions} .tracking`);
click(`${notificationOptions} .select-box-collection .select-box-row[title=Tracking]`);
expandSelectBox(notificationOptions);
selectBoxSelectRow("3", { selector: notificationOptions});
andThen(() => {
assert.ok(
exists(`${notificationOptions} .watching`),
assert.equal(
selectBox(notificationOptions).selectedRow.name(),
"watching",
"it should display the right notification level"
);