Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix a hide_from_public_spec flake (#39801)

Jarek Radoszfe0d698bc901
diff --git a/spec/system/user_page/hide_from_public_spec.rb b/spec/system/user_page/hide_from_public_spec.rb
index 0903afa5c9b..c7439de717c 100644
--- a/spec/system/user_page/hide_from_public_spec.rb
+++ b/spec/system/user_page/hide_from_public_spec.rb
@@ -25,6 +25,6 @@ describe "hide_user_profiles_from_public" do
expect(page).to have_current_path("/u/#{user.username}")
find(".error-page .buttons .btn-primary", text: "Back").click
- expect(page).to have_current_path(post.url)
+ expect(page).to have_current_path(post.url).or have_current_path(post.topic.relative_url)
end
end