0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

DEV: Add waiting the icon to change to default

Dieser Commit ist enthalten in:
jumagura 2023-05-11 05:32:33 -04:00
Ursprung 537ffeb883
Commit dd8b4b8e99

Datei anzeigen

@ -45,7 +45,10 @@ acceptance("Admin | Manager", function (needs) {
() => () =>
document.querySelector(".message-content")?.innerText === document.querySelector(".message-content")?.innerText ===
"Export, import or destroy wizards" && "Export, import or destroy wizards" &&
!document.querySelector(".message-content")?.nextElementSibling, !document.querySelector(".message-content")?.nextElementSibling &&
!find(".message-block.primary svg").classList.contains(
"d-icon-check-circle"
),
{ timeout: 15000 } { timeout: 15000 }
); );
} }
@ -74,6 +77,7 @@ acceptance("Admin | Manager", function (needs) {
exportButton.hasAttribute("disabled"), exportButton.hasAttribute("disabled"),
"the export button is disabled when export checkbox is unchecked" "the export button is disabled when export checkbox is unchecked"
); );
await click(exportCheck); await click(exportCheck);
assert.ok( assert.ok(
!exportButton.hasAttribute("disabled"), !exportButton.hasAttribute("disabled"),
@ -95,6 +99,7 @@ acceptance("Admin | Manager", function (needs) {
"the destroy button is enabled when destroy checkbox is clicked" "the destroy button is enabled when destroy checkbox is clicked"
); );
await click("#destroy-button"); await click("#destroy-button");
assert.notOk( assert.notOk(
find('table tr[data-wizard-id="this-is-testing-wizard"]'), find('table tr[data-wizard-id="this-is-testing-wizard"]'),
"the wizard row is removed after destroy button is clicked" "the wizard row is removed after destroy button is clicked"