Ensure login via modal is completed

This commit is contained in:
Matt-Yorkley
2019-01-18 19:06:42 +00:00
parent a95dd98ed6
commit 3929689d48

View File

@@ -115,13 +115,15 @@ feature "Using embedded shopfront functionality", js: true do
end
def login_with_modal
expect(page).to have_selector 'div.login-modal', visible: true
page.has_selector? 'div.login-modal', visible: true
within 'div.login-modal' do
fill_in "Email", with: user.email
fill_in "Password", with: user.password
find('input[type="submit"]').click
end
page.has_no_selector? 'div.login-modal', visible: true
end
def logout_via_navigation