wip js test
This commit is contained in:
parent
8bcfea3b0d
commit
96aee443fa
|
@ -10,15 +10,37 @@ test("update some fields", () => {
|
||||||
ok(exists('.user-preferences'), 'it shows the preferences');
|
ok(exists('.user-preferences'), 'it shows the preferences');
|
||||||
});
|
});
|
||||||
|
|
||||||
click(".preferences-nav .nav-profile a");
|
const savePreferences = () => {
|
||||||
|
|
||||||
fillIn("#edit-location", "Westeros");
|
|
||||||
|
|
||||||
click('.save-user');
|
click('.save-user');
|
||||||
ok(!exists('.saved-user'), "it hasn't been saved yet");
|
ok(!exists('.saved-user'), "it hasn't been saved yet");
|
||||||
andThen(() => {
|
andThen(() => {
|
||||||
ok(exists('.saved-user'), 'it displays the saved message');
|
ok(exists('.saved-user'), 'it displays the saved message');
|
||||||
});
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
click(".preferences-nav .nav-profile a");
|
||||||
|
fillIn("#edit-location", "Westeros");
|
||||||
|
savePreferences();
|
||||||
|
|
||||||
|
click(".preferences-nav .nav-emails a");
|
||||||
|
click(".pref-activity-summary input[type=checkbox]");
|
||||||
|
savePreferences();
|
||||||
|
|
||||||
|
click(".preferences-nav .nav-notifications a");
|
||||||
|
selectDropdown('.control-group.notifications select.combobox', 1440);
|
||||||
|
savePreferences();
|
||||||
|
|
||||||
|
click(".preferences-nav .nav-categories a");
|
||||||
|
fillIn('.category-controls .category-selector', 'faq');
|
||||||
|
savePreferences();
|
||||||
|
|
||||||
|
ok(!exists('.preferences-nav .nav-tags a'), "tags tab isn't there when tags are disabled");
|
||||||
|
|
||||||
|
click(".preferences-nav .nav-interface a");
|
||||||
|
click('.control-group.other input[type=checkbox]:first');
|
||||||
|
savePreferences();
|
||||||
|
|
||||||
|
ok(!exists('.preferences-nav .nav-apps a'), "apps tab isn't there when you have no authorized apps");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("username", () => {
|
test("username", () => {
|
||||||
|
|
Loading…
Reference in New Issue