mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 22:39:36 +08:00
deaf3682e9
(cc @featheredtoast)
16 lines
341 B
JavaScript
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');
|
|
});
|
|
|
|
});
|