A platform for community discussion. Free, open, simple.
DEV: Try to de-flake topic page specs (#22065)
Jarek Radosze6f8897450a7
diff --git a/spec/system/topic_page_spec.rb b/spec/system/topic_page_spec.rbindex 469ea9178d1..a4e8c26a145 100644--- a/spec/system/topic_page_spec.rb+++ b/spec/system/topic_page_spec.rb@@ -13,10 +13,9 @@ describe "Topic page", type: :system doit "allows TOC anchor navigation" dovisit("/t/#{topic.slug}/#{topic.id}")- find("#toc-h2-testing").hover- find("a.anchor").click+ find("#toc-h2-testing .anchor", visible: :all).click- try_until_success(timeout: 10) do+ try_until_success doexpect(current_url).to match("/t/#{topic.slug}/#{topic.id}#toc-h2-testing")endend@@ -27,10 +26,9 @@ describe "Topic page", type: :system doit "allows TOC anchor navigation" dovisit("/forum/t/#{topic.slug}/#{topic.id}")- find("#toc-h2-testing").hover- find("a.anchor").click+ find("#toc-h2-testing .anchor", visible: :all).click- try_until_success(timeout: 10) do+ try_until_success doexpect(current_url).to match("/forum/t/#{topic.slug}/#{topic.id}#toc-h2-testing")endend