DEV: Update admin acceptance test custom-fields
, logs
, submissions
Dieser Commit ist enthalten in:
Ursprung
54ad75bafd
Commit
15cc33b8cc
3 geänderte Dateien mit 6 neuen und 9 gelöschten Zeilen
|
@ -4,7 +4,7 @@ import {
|
|||
visible,
|
||||
} from "discourse/tests/helpers/qunit-helpers";
|
||||
import { test } from "qunit";
|
||||
import { findAll, visit } from "@ember/test-helpers";
|
||||
import { click, findAll, visit } from "@ember/test-helpers";
|
||||
import {
|
||||
getCustomFields,
|
||||
getUnsubscribedAdminWizards,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { acceptance, query } from "discourse/tests/helpers/qunit-helpers";
|
||||
import { test } from "qunit";
|
||||
import { findAll, visit } from "@ember/test-helpers";
|
||||
import { click, findAll, visit } from "@ember/test-helpers";
|
||||
import selectKit from "discourse/tests/helpers/select-kit-helper";
|
||||
import {
|
||||
getUnsubscribedAdminWizards,
|
||||
|
@ -54,8 +54,7 @@ acceptance("Admin | Logs", function (needs) {
|
|||
assert.ok(find("table"));
|
||||
assert.ok(findAll("table tbody tr").length === 2, "Displays logs list");
|
||||
|
||||
const refreshButton = find(".refresh.btn");
|
||||
await click(refreshButton);
|
||||
await click(".refresh.btn");
|
||||
assert.ok(find("table"));
|
||||
assert.ok(
|
||||
findAll("table tbody tr").length === 2,
|
||||
|
@ -63,8 +62,7 @@ acceptance("Admin | Logs", function (needs) {
|
|||
);
|
||||
|
||||
await wizards.expand();
|
||||
const li = find('[data-name="Select a wizard"]');
|
||||
await click(li);
|
||||
await click('[data-name="Select a wizard"]');
|
||||
const wizardContainerDiv = find(".admin-wizard-container");
|
||||
assert.ok(wizardContainerDiv.children().length === 0, "the div is empty");
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { acceptance, query } from "discourse/tests/helpers/qunit-helpers";
|
||||
import { test } from "qunit";
|
||||
import { findAll, visit } from "@ember/test-helpers";
|
||||
import { click, findAll, visit } from "@ember/test-helpers";
|
||||
import selectKit from "discourse/tests/helpers/select-kit-helper";
|
||||
import {
|
||||
getUnsubscribedAdminWizards,
|
||||
|
@ -58,8 +58,7 @@ acceptance("Admin | Submissions", function (needs) {
|
|||
);
|
||||
|
||||
await wizards.expand();
|
||||
const li = find('[data-name="Select a wizard"]');
|
||||
await click(li);
|
||||
await click('[data-name="Select a wizard"]');
|
||||
const wizardContainerDiv = find(".admin-wizard-container");
|
||||
assert.ok(wizardContainerDiv.children().length === 0, "the div is empty");
|
||||
});
|
||||
|
|
Laden …
In neuem Issue referenzieren