From e69a7edb78183ba2b13b9c09b4570a15565ab5a3 Mon Sep 17 00:00:00 2001 From: hoshinotsuyoshi Date: Sun, 20 Oct 2024 13:06:49 +0900 Subject: [PATCH] ??? --- .../spec/system/scenarios/login_flow_spec.rb | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/backend/spec/system/scenarios/login_flow_spec.rb b/backend/spec/system/scenarios/login_flow_spec.rb index d3515fb..5dcf734 100644 --- a/backend/spec/system/scenarios/login_flow_spec.rb +++ b/backend/spec/system/scenarios/login_flow_spec.rb @@ -14,16 +14,16 @@ fill_in "password", with: user.password click_button "Login" - puts page.text - Timeout.timeout(10) do - until page.send(:has_content?, user.email_address) - sleep 0.01 - end - #rescue Selenium::WebDriver::Error::UnknownError => e - # puts '-----' - # puts e.message - # puts '-----' - end + ###puts page.text + ###Timeout.timeout(10) do + ### until page.send(:has_content?, user.email_address) + ### sleep 0.01 + ### end + ####rescue Selenium::WebDriver::Error::UnknownError => e + #### puts '-----' + #### puts e.message + #### puts '-----' + ###end expect(page).to have_content(user.email_address) expect(page).to have_content("hello, It's me!") @@ -31,15 +31,15 @@ click_button "Logout" end - Timeout.timeout(10) do - until page.send(:has_content?, "Login") - sleep 0.01 - end - #rescue Selenium::WebDriver::Error::UnknownError => e - # puts '-----' - # puts e.message - # puts '-----' - end + ###Timeout.timeout(10) do + ### until page.send(:has_content?, "Login") + ### sleep 0.01 + ### end + ####rescue Selenium::WebDriver::Error::UnknownError => e + #### puts '-----' + #### puts e.message + #### puts '-----' + ###end # retry_once(Selenium::WebDriver::Error::UnknownError) { expect(page).to have_content("Login") }