mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 14:33:43 +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');
|
|
});
|
|
|
|
});
|