From 52d308e7b4649b3b6ac8466698360e24ae134f66 Mon Sep 17 00:00:00 2001 From: jumagura Date: Tue, 13 Dec 2022 09:23:21 -0400 Subject: [PATCH] DEV: Add unselecting dropdown element in admin acceptance test --- .../javascripts/acceptance/admin-submissions-test.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/javascripts/acceptance/admin-submissions-test.js b/test/javascripts/acceptance/admin-submissions-test.js index 5ef1e6fc..574e0765 100644 --- a/test/javascripts/acceptance/admin-submissions-test.js +++ b/test/javascripts/acceptance/admin-submissions-test.js @@ -23,7 +23,7 @@ acceptance("Admin | Submissions", function (needs) { }, submissions: [ { - id: "a3aa3ba4ac590dc033cd2aa6", + id: "1", fields: { step_1_field_1: { value: @@ -35,9 +35,9 @@ acceptance("Admin | Submissions", function (needs) { submitted_at: "2022-12-12T09:41:57-04:00", user: { id: 1, - username: "juangura", + username: "someuser", 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, "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"); }); });