Skip to content

Commit

Permalink
Correct the feature test picking the project in the filter
Browse files Browse the repository at this point in the history
  • Loading branch information
hellcp-work committed May 31, 2024
1 parent 00e88c5 commit 0141571
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
%h6.px-3.py-2
%b Projects
.dropdown.px-3.py-1.form-multi-select{ 'data-name': 'projects' }
%button.form-select.text-start{ type: 'button', data: { 'bs-toggle': 'dropdown' } }
%button.form-select.text-start#filter-projects-button{ type: 'button', data: { 'bs-toggle': 'dropdown' } }
Select the projects
.dropdown-menu
- @projects_for_filter.each do |project_name|
Expand All @@ -89,7 +89,7 @@
%h6.px-3.py-2
%b Groups
.dropdown.px-3.py-1.form-multi-select{ 'data-name': 'groups' }
%button.form-select.text-start{ type: 'button', data: { 'bs-toggle': 'dropdown' } }
%button.form-select.text-start#filter-groups-button{ type: 'button', data: { 'bs-toggle': 'dropdown' } }
Select the groups
.dropdown-menu
- @groups_for_filter.each do |group_title|
Expand Down
5 changes: 4 additions & 1 deletion src/api/spec/features/webui/users/notifications_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
context 'when marking multiple comment notifications as read' do
before do
find_by_id('notifications-dropdown-trigger').click if mobile? # open the filter dropdown
within('#filters') { check('Comments') }
within('#filters') {
click_button('filter-projects-button')
check('Comments')
}
click_button('filter-button') # apply the filters
toggle_checkbox("notification_ids_#{notification_for_projects_comment.id}")
toggle_checkbox("notification_ids_#{another_notification_for_projects_comment.id}")
Expand Down

0 comments on commit 0141571

Please sign in to comment.