We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3e24fe commit b761854Copy full SHA for b761854
spec/system/post_spec.rb
@@ -42,9 +42,12 @@
42
43
it "redirects on click" do
44
topic_page.visit_topic(topic)
45
+
46
+ try_until_success { expect(page.windows.length).to eq(1) }
47
48
page.find('[data-room="test-without-iframe"] button').click
- page.switch_to_window(page.windows.last)
- expect(page).to have_current_path("/test-without-iframe")
49
50
+ try_until_success { expect(page.windows.length).to eq(2) }
51
end
52
53
0 commit comments