mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 03:01:33 +08:00
DEV: migrate acceptance tests to async await - invite, login, mobile
This commit is contained in:
@ -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");
|
||||
});
|
||||
|
Reference in New Issue
Block a user