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

Remove fragile tests

Dieser Commit ist enthalten in:
Angus McLeod 2023-06-28 09:22:07 +02:00
Ursprung 6e0f10ca0d
Commit cd6503d425
2 geänderte Dateien mit 1 neuen und 33 gelöschten Zeilen

Datei anzeigen

@ -1,7 +1,7 @@
# frozen_string_literal: true
# name: discourse-custom-wizard
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
# version: 2.4.7
# version: 2.4.8
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos
# url: https://github.com/paviliondev/discourse-custom-wizard
# contact_emails: development@pavilion.tech

Datei anzeigen

@ -441,38 +441,6 @@ acceptance("Admin | Custom Wizard Unsuscribed", function (needs) {
assert.strictEqual(actualValue, "Some value", "Value is correct");
assert.strictEqual(actualResultText, "Result text", "Text is correct");
}
const fieldsContentSet = [
[6, "bug", "1"],
[7, "gazelle", "gazelle"],
];
for (let [
fieldIndex,
expectedDataName,
expectedDataValue,
] of fieldsContentSet) {
await click(
`.admin-wizard-container .wizard-custom-action .setting:nth-of-type(${fieldIndex}) button`
);
let selectKitInsideThirdSetting = await selectKit(
`.admin-wizard-container .wizard-custom-action .setting:nth-of-type(${fieldIndex}) .output .select-kit`
);
await selectKitInsideThirdSetting.expand();
await selectKitInsideThirdSetting.selectRowByIndex(1);
let selectKitElement = document.querySelector(
`.admin-wizard-container .wizard-custom-action .setting:nth-of-type(${fieldIndex}) .output .select-kit`
);
let summaryElement = selectKitElement.querySelector("summary");
assert.equal(
summaryElement.getAttribute("data-name"),
expectedDataName,
"The correct data-name is selected"
);
assert.equal(
summaryElement.getAttribute("data-value"),
expectedDataValue,
"The correct data-value is selected"
);
}
assert.ok(
!visible('.admin-wizard-buttons button:contains("Delete Wizard")'),
"delete wizard button not displayed"