Commit ef866f1c by vulehuan

rspec: card - step 2: click Back button

parent cb9d4cf3
......@@ -255,6 +255,15 @@ describe "CardPages" do
end
describe "when click Back" do
before do
visit url_for(controller: 'cards', action: 'checkout')
click_link "Back"
end
it { should have_title(full_title('Cards')) }
it { should have_selector('.btn-update-card-quantity') }
it { should have_selector('a.btn', text: 'Remove') }
it { should have_selector('a.btn', text: 'Check out') }
end
describe "when click product name" do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment