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 specs

Mir Bhatiabb0168c38256
diff --git a/spec/features/activities/wiki_activity_spec.rb b/spec/features/activities/wiki_activity_spec.rb
index 668e4eceefe..e09675086d2 100644
--- a/spec/features/activities/wiki_activity_spec.rb
+++ b/spec/features/activities/wiki_activity_spec.rb
@@ -81,7 +81,8 @@ describe 'Wiki activities' do
expect(page)
.to have_link('Wiki: My page')
- click_link('Wiki: My page')
+ # Click on the second wiki activity item
+ find(:xpath, "(//a[text()='Wiki: My page'])[1]").click
expect(page)
.to have_current_path(project_wiki_path(project.id, 'my-page', version: 2))