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.
This commit is contained in:
paulo-felipe
2023-05-17 21:42:29 -03:00
parent 8c709e13e0
commit f0da85d723

View File

@@ -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