Skip to content

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

Use test helper to check for presence of enterprise banner

Jan Sandbrink97c7a946a4d1
diff --git a/modules/auth_saml/spec/features/administration/saml_crud_spec.rb b/modules/auth_saml/spec/features/administration/saml_crud_spec.rb
index b7a210d4b01..8abe6d62409 100644
--- a/modules/auth_saml/spec/features/administration/saml_crud_spec.rb
+++ b/modules/auth_saml/spec/features/administration/saml_crud_spec.rb
@@ -195,7 +195,7 @@ RSpec.describe "SAML administration CRUD",
context "without EE", without_ee: %i[sso_auth_providers] do
it "renders the upsale page" do
visit "/admin/saml/providers"
- expect(page).to have_text "Available only through the Professional enterprise plan"
+ expect(page).to have_enterprise_banner(:professional)
end
end
end