discourse/test/javascripts/acceptance/user-card-test.js.es6

16 lines
341 B
Plaintext
Raw Normal View History

import { acceptance } from "helpers/qunit-helpers";
acceptance("User Card");
QUnit.test("user card", assert => {
visit('/');
2017-06-15 01:57:58 +08:00
assert.ok(invisible('#user-card'), 'user card is invisible by default');
click('a[data-user-card=eviltrout]:first');
andThen(() => {
2017-06-15 01:57:58 +08:00
assert.ok(visible('#user-card'), 'card should appear');
});
});