mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 20:56:54 +08:00
FIX: Lots of plugin tests were using old, non-Ember compat CLI APIs (#13320)
This commit is contained in:
@ -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"
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user