From f05e2618be0760df25c23bea2cb0aecf1fdb17e1 Mon Sep 17 00:00:00 2001 From: paulo-felipe Date: Thu, 11 May 2023 21:07:33 -0300 Subject: [PATCH] refactor(spec/system/admin/subscriptions_spec.rb): issue #7483 Add context on third page and click next button without adding at least one product. --- spec/system/admin/subscriptions_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/system/admin/subscriptions_spec.rb b/spec/system/admin/subscriptions_spec.rb index f9dfd55ffd..e84151ef66 100644 --- a/spec/system/admin/subscriptions_spec.rb +++ b/spec/system/admin/subscriptions_spec.rb @@ -337,6 +337,14 @@ describe 'Subscriptions' do it 'has content NAME OR SKU' do expect(page).to have_content 'NAME OR SKU' end + + context 'and click next button without adding at least one product' do + before { click_button('Next') } + + it 'has content Please add at least one product' do + expect(page).to have_content 'Please add at least one product' + end + end end it "passes the smoke test" do