OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix specs that broke due to the restructuring of the enterprise page
Henriette Dinger75c6870d8737
diff --git a/spec/controllers/enterprises_controller_spec.rb b/spec/controllers/enterprises_controller_spec.rbindex e57b1648d79..5f270184ccc 100644--- a/spec/controllers/enterprises_controller_spec.rb+++ b/spec/controllers/enterprises_controller_spec.rb@@ -73,7 +73,7 @@ describe EnterprisesController, type: :controller doit 'still renders #show with form' doexpect(response).not_to render_template partial: 'enterprises/_current'- expect(response.body).to have_selector '.upsale-notification'+ expect(response.body).to have_selector '.upsale-benefits'endendenddiff --git a/spec/features/admin/enterprise_spec.rb b/spec/features/admin/enterprise_spec.rbindex 7fcda53c6f3..06b69192ab0 100644--- a/spec/features/admin/enterprise_spec.rb+++ b/spec/features/admin/enterprise_spec.rb@@ -52,7 +52,8 @@ describe 'Enterprise token', type: :feature, js: true doendit 'shows a teaser and token form without a token' do- expect(page).to have_selector('.upsale-notification a', text: 'Order Enterprise Edition')+ expect(page).to have_selector('.button', text: 'Start free trial')+ expect(page).to have_selector('.button', text: 'Book now')expect(textarea.value).to be_emptytextarea.set 'foobar'@@ -78,9 +79,9 @@ describe 'Enterprise token', type: :feature, js: true doexpect(page).to have_selector('.enterprise--active-token')expect(page.all('.attributes-key-value--key').map(&:text))- .to eq ['Subscriber', 'Email', 'Valid since']+ .to eq ['Subscriber', 'Email', 'Maximum active users', 'Starts at', 'Expires at']expect(page.all('.attributes-key-value--value').map(&:text))- .to eq ['Foobar', '[email protected]', format_date(Date.today)]+ .to eq ['Foobar', '[email protected]', 'Unlimited', format_date(Date.today), 'Unlimited']expect(page).to have_selector('.button.icon-delete', text: I18n.t(:button_delete))