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