Skip to content

Commit 2d8c1cc

Browse files
committed
fix(order_spec): Expect to be logged in
Before accessing the cart we need to expect to be logged in.
1 parent 778cc59 commit 2d8c1cc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

spec/features/order_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
fill_in "Email", with: user.email
2525
fill_in "Password", with: user.password
2626
click_button "Login"
27+
expect(page).to have_text "Logged in successfully"
2728

2829
click_link "Cart"
2930
expect(page).to have_text "RoR Mug"

0 commit comments

Comments
 (0)