Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
DEV: Add unselecting dropdown element in admin acceptance test
Dieser Commit ist enthalten in:
Ursprung
09e56499ca
Commit
52d308e7b4
1 geänderte Dateien mit 9 neuen und 3 gelöschten Zeilen
|
@ -23,7 +23,7 @@ acceptance("Admin | Submissions", function (needs) {
|
||||||
},
|
},
|
||||||
submissions: [
|
submissions: [
|
||||||
{
|
{
|
||||||
id: "a3aa3ba4ac590dc033cd2aa6",
|
id: "1",
|
||||||
fields: {
|
fields: {
|
||||||
step_1_field_1: {
|
step_1_field_1: {
|
||||||
value:
|
value:
|
||||||
|
@ -35,9 +35,9 @@ acceptance("Admin | Submissions", function (needs) {
|
||||||
submitted_at: "2022-12-12T09:41:57-04:00",
|
submitted_at: "2022-12-12T09:41:57-04:00",
|
||||||
user: {
|
user: {
|
||||||
id: 1,
|
id: 1,
|
||||||
username: "juangura",
|
username: "someuser",
|
||||||
name: null,
|
name: null,
|
||||||
avatar_template: "/user_avatar/localhost/juangura/{size}/3_2.png",
|
avatar_template: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -306,5 +306,11 @@ acceptance("Admin | Submissions", function (needs) {
|
||||||
findAll("table tbody tr").length >= 1,
|
findAll("table tbody tr").length >= 1,
|
||||||
"Displays submissions list"
|
"Displays submissions list"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
await wizards.expand();
|
||||||
|
const li = find('[data-name="Select a wizard"]');
|
||||||
|
await click(li);
|
||||||
|
const wizardContainerDiv = find(".admin-wizard-container");
|
||||||
|
assert.ok(wizardContainerDiv.children().length === 0, "the div is empty");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Laden …
In neuem Issue referenzieren