FIX: Lots of plugin tests were using old, non-Ember compat CLI APIs (#13320)

This commit is contained in:
Robin Ward
2021-06-09 10:58:55 -04:00
committed by GitHub
parent 3b6d6c7024
commit 77d33ebe21
24 changed files with 514 additions and 422 deletions

View File

@ -5,6 +5,7 @@ import {
} from "discourse/tests/helpers/qunit-helpers";
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
import { displayPollBuilderButton } from "discourse/plugins/poll/helpers/display-poll-builder-button";
import { test } from "qunit";
acceptance("Poll Builder - polls are enabled", function (needs) {
needs.user();
@ -20,7 +21,7 @@ acceptance("Poll Builder - polls are enabled", function (needs) {
await displayPollBuilderButton();
assert.ok(
exists(".select-kit-row[title='Build Poll']"),
exists(".select-kit-row[data-value='showPollBuilder']"),
"it shows the builder button"
);
});
@ -31,7 +32,7 @@ acceptance("Poll Builder - polls are enabled", function (needs) {
await displayPollBuilderButton();
assert.ok(
!exists(".select-kit-row[title='Build Poll']"),
!exists(".select-kit-row[data-value='showPollBuilder]"),
"it hides the builder button"
);
});
@ -42,7 +43,7 @@ acceptance("Poll Builder - polls are enabled", function (needs) {
await displayPollBuilderButton();
assert.ok(
exists(".select-kit-row[title='Build Poll']"),
exists(".select-kit-row[data-value='showPollBuilder']"),
"it shows the builder button"
);
});