discourse/test/javascripts/acceptance/user-card-test.js.es6
2018-05-09 17:27:59 +02:00

16 lines
341 B
JavaScript

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