Skip to content

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

FIX: ensures we have changed page first (#32802)

Joffrey JAFFEUX72b6ad42f308
diff --git a/spec/system/private_message_spec.rb b/spec/system/private_message_spec.rb
index 40195690f9d..baad7ba5636 100644
--- a/spec/system/private_message_spec.rb
+++ b/spec/system/private_message_spec.rb
@@ -16,8 +16,8 @@ describe "Private Message", type: :system do
post.topic.remove_allowed_user(sender, recipient)
- expect(page).to have_no_css("h1", text: post.topic.title)
expect(page).to have_current_path("/u/#{recipient.username}/messages")
+ expect(page).to have_no_css("h1", text: post.topic.title)
end
end
end