mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 18:53:53 +08:00
Migrate createViewWithBodyClass
helper to components
This commit is contained in:
20
test/javascripts/acceptance/preferences-test.js.es6
Normal file
20
test/javascripts/acceptance/preferences-test.js.es6
Normal file
@ -0,0 +1,20 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("User Preferences", { loggedIn: true });
|
||||
|
||||
test("update some fields", () => {
|
||||
visit("/users/eviltrout/preferences");
|
||||
|
||||
andThen(() => {
|
||||
ok($('body.user-preferences-page').length, "has the body class");
|
||||
equal(currentURL(), '/users/eviltrout/preferences', "it doesn't redirect");
|
||||
ok(exists('.user-preferences'), 'it shows the preferences');
|
||||
});
|
||||
|
||||
fillIn("#edit-location", "Westeros");
|
||||
|
||||
click('.save-user');
|
||||
ok(!exists('.saved-user'), "it hasn't been saved yet");
|
||||
andThen(() => {
|
||||
ok(exists('.saved-user'), 'it displays the saved message');
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user