Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion spec/page/tracing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@
page.tracing.record(path: file_path) do
page.go_to

another = browser.create_page
expect do
another = browser.create_page
another.tracing.record(path: file_path2) { another.go_to }
end.to raise_exception(Ferrum::BrowserError, "Tracing has already been started (possibly in another tab).")
expect(File.exist?(file_path2)).to be(false)
another.close
end

expect(File.exist?(file_path)).to be(true)
Expand Down
Loading