Skip to content

Commit

Permalink
Use page.driver.browser.manage.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangarha committed Jan 1, 2024
1 parent df1360e commit a417c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/react/rails/react_rails_ujs_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ class ReactRailsUJSTest < ActionDispatch::IntegrationTest
def assert_greeting(page, greeting)
assert page.has_content?(greeting), <<~MSG
#{page.body}
#{page.driver.browser.logs.get(:browser).inspect}
#{page.driver.browser.manage.logs.get(:browser).inspect}
MSG
end

def refute_greeting(page, greeting)
assert page.has_no_content?(greeting), <<~MSG
#{page.body}
#{page.driver.browser.logs.get(:browser).inspect}
#{page.driver.browser.manage.logs.get(:browser).inspect}
MSG
end

Expand Down

0 comments on commit a417c65

Please sign in to comment.