2015-04-06 13:14:00 -05:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("User Card");
|
2014-10-20 11:11:36 -05:00
|
|
|
|
2017-06-14 12:57:58 -05:00
|
|
|
QUnit.test("card", assert => {
|
2014-10-20 11:11:36 -05:00
|
|
|
visit('/');
|
|
|
|
|
2017-06-14 12:57:58 -05:00
|
|
|
assert.ok(invisible('#user-card'), 'user card is invisible by default');
|
2014-10-20 11:11:36 -05:00
|
|
|
click('a[data-user-card=eviltrout]:first');
|
|
|
|
|
2015-03-19 06:22:56 -05:00
|
|
|
andThen(() => {
|
2017-06-14 12:57:58 -05:00
|
|
|
assert.ok(visible('#user-card'), 'card should appear');
|
2014-10-20 11:11:36 -05:00
|
|
|
});
|
|
|
|
|
2017-06-14 12:57:58 -05:00
|
|
|
});
|