mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 19:38:32 +08:00
14 lines
334 B
JavaScript
14 lines
334 B
JavaScript
import { acceptance } from "helpers/qunit-helpers";
|
|
acceptance("User Card");
|
|
|
|
QUnit.test("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');
|
|
});
|
|
|
|
}); |