From ea2ccd3ad558a9572e6f0f5191adaa79368d692d Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Thu, 8 Aug 2024 14:55:40 -0400 Subject: [PATCH] DEV: fix flakey post event spec --- spec/system/post_event_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/system/post_event_spec.rb b/spec/system/post_event_spec.rb index f40b15550..08620da69 100644 --- a/spec/system/post_event_spec.rb +++ b/spec/system/post_event_spec.rb @@ -32,6 +32,9 @@ expect(page).to have_css(".discourse-post-event .status-and-creators .status.closed") + page.find(".status-and-creators .status.closed").click + # move active element away from dropdown + # so that clicking it again below always opens the dropdown page.find("#more-dropdown").click page.find(".item-openEvent").click page.find("#dialog-holder .btn-primary").click