A platform for community discussion. Free, open, simple.
DEV: Temporary fix for flaky system test (#24598)
Alan Guo Xiang Tan91ec3323ddcb
diff --git a/spec/system/flagging_post_spec.rb b/spec/system/flagging_post_spec.rbindex d1cb2f20e47..a0025294e0e 100644--- a/spec/system/flagging_post_spec.rb+++ b/spec/system/flagging_post_spec.rb@@ -19,10 +19,12 @@ describe "Flagging post", type: :system dotopic_page.click_post_action_button(post_to_flag, :flag)flag_modal.choose_type(:off_topic)flag_modal.take_action(:agree_and_hide)+expect(topic_page.post_by_number(post_to_flag).ancestor(".topic-post.post-hidden"),).to be_present- expect(other_flag.reload.agreed_at).to be_present++ try_until_success { expect(other_flag.reload.agreed_at).to be_present }endendend