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 7792aa3 commit e69a7ed
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 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,32 @@
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!")
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 '-----'
###end

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

Expand Down

0 comments on commit e69a7ed

Please sign in to comment.