describe 'Visit script' do
it 'visitar a pagina' do
puts "visitando a pagina"
visit "https://www.google.com/"
expect(page.title).to eql "Google"
end
describe 'Visit script' do
it 'visitar a pagina' do
puts "visitando a pagina"
visit "https://www.google.com/"
expect(page.title).to eql "Google"
end
Don't use the standard RSpec matchers with Capybara objects - the standard matchers don't have waiting/retrying behavior. Instead use the Capybara provided matchers
it 'visitar a pagina' do
puts "visitando a pagina"
visit "https://www.google.com/"
expect(page).to have_title("Google")
end