DEV: migrate acceptance tests to async await - invite, login, mobile

This commit is contained in:
Maja Komel
2018-07-19 12:12:00 +02:00
parent a2281fbb19
commit 2e96646659
8 changed files with 142 additions and 198 deletions

View File

@ -1,15 +1,11 @@
import { acceptance } from "helpers/qunit-helpers";
acceptance("Topic Discovery - Mobile", { mobileView: true });
QUnit.test("Visit Discovery Pages", assert => {
visit("/");
andThen(() => {
assert.ok(exists(".topic-list"), "The list of topics was rendered");
assert.ok(exists(".topic-list .topic-list-item"), "has topics");
});
QUnit.test("Visit Discovery Pages", async assert => {
await visit("/");
assert.ok(exists(".topic-list"), "The list of topics was rendered");
assert.ok(exists(".topic-list .topic-list-item"), "has topics");
visit("/categories");
andThen(() => {
assert.ok(exists(".category"), "has a list of categories");
});
await visit("/categories");
assert.ok(exists(".category"), "has a list of categories");
});