mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Updating spec for new Login label
This commit is contained in:
@@ -33,15 +33,15 @@ feature "As a consumer I want to check out my cart", js: true do
|
||||
it "renders the login buttons when logged out" do
|
||||
visit checkout_path
|
||||
within "section[role='main']" do
|
||||
page.should have_content "Log in"
|
||||
click_button "Log in"
|
||||
page.should have_content "Login"
|
||||
click_button "Login"
|
||||
end
|
||||
page.should have_login_modal
|
||||
end
|
||||
|
||||
it "populates user details once logged in" do
|
||||
visit checkout_path
|
||||
within("section[role='main']") { click_button "Log in" }
|
||||
within("section[role='main']") { click_button "Login" }
|
||||
page.should have_login_modal
|
||||
fill_in "Email", with: user.email
|
||||
fill_in "Password", with: user.password
|
||||
|
||||
Reference in New Issue
Block a user