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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix spec
Benjamin Bädorff091f9bfb019
diff --git a/modules/boards/spec/features/action_boards/status_board_spec.rb b/modules/boards/spec/features/action_boards/status_board_spec.rbindex dfa93b0f21c..5a1bc0d97d1 100644--- a/modules/boards/spec/features/action_boards/status_board_spec.rb+++ b/modules/boards/spec/features/action_boards/status_board_spec.rb@@ -178,6 +178,7 @@ describe 'Status action board', type: :feature, js: true dofilters.open# Expect that status is not available for global filter selection+ filters.open_available_filter_listfilters.expect_available_filter 'Status', present: falsefilters.quick_filter 'Task'diff --git a/modules/boards/spec/features/action_boards/version_board_spec.rb b/modules/boards/spec/features/action_boards/version_board_spec.rbindex 2e37cb2dee4..d52abfde0f4 100644--- a/modules/boards/spec/features/action_boards/version_board_spec.rb+++ b/modules/boards/spec/features/action_boards/version_board_spec.rb@@ -156,14 +156,15 @@ describe 'Version action board', type: :feature, js: true dosubjects = WorkPackage.where(id: second.ordered_work_packages.pluck(:work_package_id)).pluck(:subject, :version_id)expect(subjects).to match_array [['Task 1', other_version.id]]- # Expect that version is not available for global filter selection- filters.expect_available_filter 'Version', present: false-# Add filter# Filter for Taskfilters.expect_filter_count 0filters.open+ # Expect that version is not available for global filter selection+ filters.open_available_filter_list+ filters.expect_available_filter 'Version', present: false+filters.quick_filter 'Task'board_page.expect_changedsleep 2diff --git a/modules/team_planner/spec/features/team_planner_spec.rb b/modules/team_planner/spec/features/team_planner_spec.rbindex 5b46b74ce40..107c9cbcc2c 100644--- a/modules/team_planner/spec/features/team_planner_spec.rb+++ b/modules/team_planner/spec/features/team_planner_spec.rb@@ -60,7 +60,7 @@ describe 'Team planner', type: :feature, js: true dofilters.open_available_filter_listfilters.expect_available_filter 'Author', present: true- filters.expect_available_filter 'ID', present: true+ filters.expect_available_filter 'Subject', present: truefilters.expect_available_filter 'Finish date', present: falsefilters.expect_available_filter 'Start date', present: falsefilters.expect_available_filter 'Assignee', present: falsediff --git a/spec/support/components/work_packages/filters.rb b/spec/support/components/work_packages/filters.rbindex a51f1ad3ed0..6fc5c4d19ce 100644--- a/spec/support/components/work_packages/filters.rb+++ b/spec/support/components/work_packages/filters.rb@@ -71,13 +71,17 @@ module Componentsenddef open_available_filter_list()- input = page.find('.advanced-filters--add-filter-value ng-input input')+ input = page.find('.advanced-filters--add-filter-value input')input.hoverinput.clickenddef expect_available_filter(name, present: true)- expect(page).to have_conditional_selector(present, '.advanced-filters--add-filter-value option', text: name)+ # The selector here is rather unspecific. Sometimes, we need ng-select to render the options outside of the+ # current element tree. However this means that the selector loses all feature specificity, as it's rendered+ # somewhere in the html body. This test assumes that only one ng-select can be opened at one time.+ # If you find errors with your specs related to the filter options, it might be coming from here.+ expect(page).to have_conditional_selector(present, '.ng-dropdown-panel .ng-option-label', text: name)enddef expect_loaded