1
0
Fork 0

DEV: Add unselecting dropdown element in admin acceptance test

Dieser Commit ist enthalten in:
jumagura 2022-12-13 09:23:21 -04:00
Ursprung 09e56499ca
Commit 52d308e7b4

Datei anzeigen

@ -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");
}); });
}); });