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

add plan to tests

Klaus Zanders7d968e04b1e7
diff --git a/spec/features/admin/enterprise/enterprise_spec.rb b/spec/features/admin/enterprise/enterprise_spec.rb
index 7d51cd4297e..1b71f76e93a 100644
--- a/spec/features/admin/enterprise/enterprise_spec.rb
+++ b/spec/features/admin/enterprise/enterprise_spec.rb
@@ -81,9 +81,17 @@ RSpec.describe "Enterprise token", :js do
expect(page).to have_test_selector("op-enterprise--active-token")
expect(page.all(".attributes-key-value--key").map(&:text))
- .to eq ["Subscriber", "Email", "Domain", "Maximum active users", "Starts at", "Expires at"]
+ .to eq ["Subscriber", "Email", "Domain", "Maximum active users", "Starts at", "Expires at", "Plan"]
expect(page.all(".attributes-key-value--value").map(&:text))
- .to eq ["Foobar", "[email protected]", Setting.host_name, "Unlimited", format_date(Time.zone.today), "Unlimited"]
+ .to eq [
+ "Foobar",
+ Setting.host_name,
+ "Unlimited",
+ format_date(Time.zone.today),
+ "Unlimited",
+ "Enterprise Plan (Token Version #{token_object.version})"
+ ]
expect(page).to have_css(".button.icon-delete", text: I18n.t(:button_delete))