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