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 missing case to wiki_activity_spec

Mir Bhatia2b5fbf835aa9
diff --git a/spec/features/activities/wiki_activity_spec.rb b/spec/features/activities/wiki_activity_spec.rb
index 5be1201808b..4ae7f245cbf 100644
--- a/spec/features/activities/wiki_activity_spec.rb
+++ b/spec/features/activities/wiki_activity_spec.rb
@@ -81,6 +81,13 @@ describe 'Wiki activities' do
expect(page)
.to have_link('Wiki: My page')
+ within("li.op-activity-list--item", match: :first) do
+ expect(page)
+ .to have_selector('li', text: "Text changed (Details)")
+ expect(page)
+ .to have_link('Details')
+ end
+
# Click on the second wiki activity item
find(:xpath, "(//a[text()='Wiki: My page'])[1]").click