Skip to content

Instantly share code, notes, and snippets.

@IanVaughan
Created January 16, 2020 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IanVaughan/4b18132184e229ab4f1615a38993a3f3 to your computer and use it in GitHub Desktop.
Save IanVaughan/4b18132184e229ab4f1615a38993a3f3 to your computer and use it in GitHub Desktop.
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