Skip to content

Commit 72b6ad4

Browse files
authored
FIX: ensures we have changed page first (#32802)
We should check the H1 is not present anymore only once we have confirmed we changed page.
1 parent 69a5da7 commit 72b6ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/system/private_message_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
post.topic.remove_allowed_user(sender, recipient)
1818

19-
expect(page).to have_no_css("h1", text: post.topic.title)
2019
expect(page).to have_current_path("/u/#{recipient.username}/messages")
20+
expect(page).to have_no_css("h1", text: post.topic.title)
2121
end
2222
end
2323
end

0 commit comments

Comments
 (0)