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 failing spec

Benjamin Bädorf3684ace0f34e
diff --git a/spec/features/work_packages/tabs/watcher_tab_spec.rb b/spec/features/work_packages/tabs/watcher_tab_spec.rb
index d524e6d966b..841a7385f36 100644
--- a/spec/features/work_packages/tabs/watcher_tab_spec.rb
+++ b/spec/features/work_packages/tabs/watcher_tab_spec.rb
@@ -58,10 +58,11 @@ describe 'Watcher tab', js: true, selenium: true do
it 'modifying the watcher list modifies the watch button' do
# Add user as watcher
- autocomplete = find('.wp-watcher--autocomplete')
+ autocomplete = find('.wp-watcher--autocomplete ng-select')
select_autocomplete autocomplete,
query: user.firstname,
- select_text: user.name
+ select_text: user.name,
+ results_selector: 'body'
# Expect the addition of the user to toggle WP watch button
expect(page).to have_selector('[data-qa-selector="op-wp-watcher-name"]', count: 1, text: user.name)