2015-04-07 02:14:00 +08:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
2018-05-09 23:27:59 +08:00
|
|
|
|
2015-04-07 02:14:00 +08:00
|
|
|
acceptance("User Card");
|
2014-10-21 00:11:36 +08:00
|
|
|
|
2018-05-09 23:27:59 +08:00
|
|
|
QUnit.test("user card", assert => {
|
2014-10-21 00:11:36 +08:00
|
|
|
visit('/');
|
|
|
|
|
2017-06-15 01:57:58 +08:00
|
|
|
assert.ok(invisible('#user-card'), 'user card is invisible by default');
|
2014-10-21 00:11:36 +08:00
|
|
|
click('a[data-user-card=eviltrout]:first');
|
|
|
|
|
2015-03-19 19:22:56 +08:00
|
|
|
andThen(() => {
|
2017-06-15 01:57:58 +08:00
|
|
|
assert.ok(visible('#user-card'), 'card should appear');
|
2014-10-21 00:11:36 +08:00
|
|
|
});
|
|
|
|
|
2018-04-18 06:52:23 +08:00
|
|
|
});
|