Files
discourse/test/javascripts/integration/user-card-test.js.es6
Robin Ward 7aa68eaeab Rename "Integration" tests to "Acceptance" tests.
The term "Acceptance" seems to have won out everywhere and I don't want
our codebase to be confusing.
2015-04-06 14:14:00 -04:00

15 lines
311 B
JavaScript

import { acceptance } from "helpers/qunit-helpers";
acceptance("User Card");
test("card", () => {
visit('/');
ok(invisible('#user-card'), 'user card is invisible by default');
click('a[data-user-card=eviltrout]:first');
andThen(() => {
ok(visible('#user-card'), 'card should appear');
});
});