From a417c65fa4ebbe7059b7e8c67e40cc33cb4415c8 Mon Sep 17 00:00:00 2001 From: Mostafa Ahangarha Date: Tue, 2 Jan 2024 01:42:06 +0330 Subject: [PATCH] Use page.driver.browser.manage.logs --- test/react/rails/react_rails_ujs_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/react/rails/react_rails_ujs_test.rb b/test/react/rails/react_rails_ujs_test.rb index 568b0c0c..698f4a5d 100644 --- a/test/react/rails/react_rails_ujs_test.rb +++ b/test/react/rails/react_rails_ujs_test.rb @@ -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