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

Fix regex for URL

Klaus Zanders8950a94504c1
diff --git a/spec/features/users/my/access_tokens_spec.rb b/spec/features/users/my/access_tokens_spec.rb
index 281ad992c05..453c3f76a36 100644
--- a/spec/features/users/my/access_tokens_spec.rb
+++ b/spec/features/users/my/access_tokens_spec.rb
@@ -271,7 +271,7 @@ RSpec.describe "my access tokens", :js do
within("dialog#ical_meeting-created-dialog") do
expect(page).to have_content "The iCal Meeting subscription token has been generated"
expect(page).to have_field("openproject_api_access_token",
- with: %r{http://localhost:\d+/meetings/ical/[a-f0-9]{64}.ics},
+ with: %r{http(s?)://[^/]+/meetings/ical/[a-f0-9]{64}.ics},
readonly: true)
click_on "Close"
end