Skip to content

Commit

Permalink
おきたので再調査
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshinotsuyoshi committed Oct 20, 2024
1 parent e69a7ed commit cf2fa1f
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions backend/spec/system/scenarios/login_flow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,34 @@
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 '-----'
raise
end

expect(page).to have_content(user.email_address)
expect(page).to have_content("hello, It's me!")
accept_alert do
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 '-----'
raise
end

# retry_once(Selenium::WebDriver::Error::UnknownError) { expect(page).to have_content("Login") }

Expand Down

0 comments on commit cf2fa1f

Please sign in to comment.