Merge pull request #8329 from mkllnk/checkout-spec

Expect content after page is loaded
This commit is contained in:
Matt-Yorkley
2021-10-12 11:21:29 +02:00
committed by GitHub

View File

@@ -53,6 +53,8 @@ describe "As a consumer I want to check out my cart", js: true do
fill_in "Email", with: user.email
fill_in "Password", with: user.password
within(".login-modal") { click_button 'Login' }
expect(page).to have_content "Your details"
toggle_details
expect(page).to have_field 'First Name', with: 'Foo'