Commit 99631f65 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira Committed by Douglas Barbosa Alexandre

Add removed feat tests back

parent f009d429
...@@ -160,6 +160,10 @@ describe 'Billing plan pages', :feature do ...@@ -160,6 +160,10 @@ describe 'Billing plan pages', :feature do
end end
end end
it 'does not display the billing plans table' do
expect(page).not_to have_css('.billing-plans')
end
it 'displays subscription table', :js do it 'displays subscription table', :js do
expect(page).to have_selector('.js-subscription-table') expect(page).to have_selector('.js-subscription-table')
end end
...@@ -198,6 +202,8 @@ describe 'Billing plan pages', :feature do ...@@ -198,6 +202,8 @@ describe 'Billing plan pages', :feature do
expect(page).to have_css('.billing-plan-logo .identicon') expect(page).to have_css('.billing-plan-logo .identicon')
expect(page.find('.btn-success')).to have_content('Manage plan') expect(page.find('.btn-success')).to have_content('Manage plan')
end end
expect(page).not_to have_css('.billing-plans')
end end
end end
end end
...@@ -230,5 +236,15 @@ describe 'Billing plan pages', :feature do ...@@ -230,5 +236,15 @@ describe 'Billing plan pages', :feature do
it 'renders no header for missing plan' do it 'renders no header for missing plan' do
expect(page).not_to have_css('.billing-plan-header') expect(page).not_to have_css('.billing-plan-header')
end end
it 'displays all plans' do
page.within('.billing-plans') do
panels = page.all('.card')
expect(panels.length).to eq(plans_data.length)
plans_data.each_with_index do |data, index|
expect(panels[index].find('.card-header')).to have_content(data[:name])
end
end
end
end end
end end
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