Created
January 16, 2020 09:28
-
-
Save IanVaughan/4b18132184e229ab4f1615a38993a3f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
RSpec.feature 'User signup flow', :js do | |
scenario 'Visits home page to signup' do | |
puts "*** Capybara start ***" | |
visit root_path | |
new_window = window_opened_by { click_link 'Sign Up', match: :first } | |
within_window new_window do | |
expect(page).to have_text('New Enquiry', wait: 5) | |
end | |
puts "*** Capybara end ***" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment