A platform for community discussion. Free, open, simple.
DEV: Resolve flaky test due to regexp match (#32343)
Alan Guo Xiang Tanf6eb2e083cab
diff --git a/spec/system/user_activity_posts_spec.rb b/spec/system/user_activity_posts_spec.rbindex bd16970621d..4b7b9554790 100644--- a/spec/system/user_activity_posts_spec.rb+++ b/spec/system/user_activity_posts_spec.rb@@ -20,7 +20,7 @@ describe "User activity posts", type: :system doexpect(page).to have_css(".stream-topic-title .title", count: 2)- title_element = find(".stream-topic-title .title a[href*='/#{topic1.id}']")+ title_element = find(".stream-topic-title .title a[href*='/#{topic1.id}/']")expect(title_element).to have_text("Title with & characters and emoji")expect(title_element).to have_css("img.emoji[title='wave']")end