mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: migrate acceptance tests to async await - dashboard, emoji, group
This commit is contained in:
@@ -2,13 +2,10 @@ import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("Group Card - Mobile", { mobileView: true });
|
||||
|
||||
QUnit.test("group card", assert => {
|
||||
visit("/t/301/1");
|
||||
|
||||
QUnit.test("group card", async assert => {
|
||||
await visit("/t/301/1");
|
||||
assert.ok(invisible("#group-card"), "user card is invisible by default");
|
||||
click("a.mention-group:first");
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(visible(".group-details-container"), "group page show be shown");
|
||||
});
|
||||
await click("a.mention-group:first");
|
||||
assert.ok(visible(".group-details-container"), "group page show be shown");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user