From f0da85d723fe21a46598cc73d920c724210a9bfb Mon Sep 17 00:00:00 2001 From: paulo-felipe Date: Wed, 17 May 2023 21:42:29 -0300 Subject: [PATCH] refactor(spec/system/admin/subscriptions_spec.rb): issue #7483 Add context when click Create Subscription button on third page after click next button previously on second page. --- spec/system/admin/subscriptions_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/system/admin/subscriptions_spec.rb b/spec/system/admin/subscriptions_spec.rb index 55c5ada90c..c90567c6dd 100644 --- a/spec/system/admin/subscriptions_spec.rb +++ b/spec/system/admin/subscriptions_spec.rb @@ -402,6 +402,15 @@ describe 'Subscriptions' do expect(page).to have_current_path admin_subscriptions_path }.to change(Subscription, :count).by(1) end + + context 'and click Create Subscription button' do + it 'has selector td.items.panel-toggle' do + click_button('Create Subscription') + + select2_select shop.name, from: "shop_id" + expect(page).to have_selector "td.items.panel-toggle" + end + end end end end