mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
DEV: migrate tests to async/await
This commit is contained in:
parent
176d8ca78d
commit
04baddf731
31 changed files with 1320 additions and 1729 deletions
|
@ -33,7 +33,7 @@ componentTest("regular topic notification level descriptions", {
|
|||
"{{topic-notifications-options value=topic.details.notification_level topic=topic}}",
|
||||
|
||||
async test(assert) {
|
||||
await selectKit().expandAwait();
|
||||
await selectKit().expand();
|
||||
await this.set("topic", buildTopic("regular"));
|
||||
|
||||
const uiTexts = extractDescs(selectKit().rows());
|
||||
|
@ -59,7 +59,7 @@ componentTest("PM topic notification level descriptions", {
|
|||
"{{topic-notifications-options value=topic.details.notification_level topic=topic}}",
|
||||
|
||||
async test(assert) {
|
||||
await selectKit().expandAwait();
|
||||
await selectKit().expand();
|
||||
await this.set("topic", buildTopic("private_message"));
|
||||
|
||||
const uiTexts = extractDescs(selectKit().rows());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue