From 35ce46381169d0fc0f503529239169dbd064081d Mon Sep 17 00:00:00 2001 From: paulo-felipe Date: Thu, 11 May 2023 21:03:46 -0300 Subject: [PATCH] refactor(spec/system/admin/subscriptions_spec.rb): issue #7483 Add context on third page. --- spec/system/admin/subscriptions_spec.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/spec/system/admin/subscriptions_spec.rb b/spec/system/admin/subscriptions_spec.rb index 3ff5441654..f9dfd55ffd 100644 --- a/spec/system/admin/subscriptions_spec.rb +++ b/spec/system/admin/subscriptions_spec.rb @@ -322,6 +322,23 @@ describe 'Subscriptions' do end end + context 'on third page' do + before do + select2_select customer.email, from: 'customer_id' + select2_select schedule.name, from: 'schedule_id' + select2_select payment_method.name, from: 'payment_method_id' + select2_select shipping_method.name, from: 'shipping_method_id' + find_field('begins_at').click + choose_today_from_datepicker + click_button('Next') + click_button('Next') + end + + it 'has content NAME OR SKU' do + expect(page).to have_content 'NAME OR SKU' + end + end + it "passes the smoke test" do select2_select customer.email, from: 'customer_id' select2_select schedule.name, from: 'schedule_id'