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

Adapt button expectation

Oliver Günther358df8934e9b
diff --git a/spec/features/admin/enterprise/enterprise_spec.rb b/spec/features/admin/enterprise/enterprise_spec.rb
index 0ae4fe21911..8580fde6d11 100644
--- a/spec/features/admin/enterprise/enterprise_spec.rb
+++ b/spec/features/admin/enterprise/enterprise_spec.rb
@@ -56,7 +56,7 @@ RSpec.describe "Enterprise token", :js do
it "shows a teaser page and has a button to add a token" do
# The teaser page is displayed
# TODO: this will likely change, adapt to the new teaser page
- expect(page).to have_css(".button", text: "Start free trial")
+ expect(page).to have_link("Start free trial")
expect(page).to have_css(".button", text: "Book now")
# Try adding invalid enterprise token data