mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 22:33:53 +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');
|
|
});
|
|
|
|
});
|