Multiple specs in 17.5 and 17.6 do not handle cross-year boundaries
In https://gitlab.com/gitlab-org/security/gitlab/-/jobs/8750169310 I see this failure:
User views iteration (./ee/spec/features/projects/iterations/user_views_iteration_spec.rb:5) – 00:02.437 (921 / 1) of 01:15.716 (3.22%)
Failures:
1) User views iteration with license behaves like render iteration page view an iteration shows iteration info
Got 1 failure and 1 other error:
Shared Example Group: "render iteration page" called from ./ee/spec/features/projects/iterations/user_views_iteration_spec.rb:67
1.1) Failure/Error: expect(page).to have_content(iteration_period_display(iteration))
expected to find text "Dec 31 - Jan 1, 2025" in "Primary navigation Homepage Create new... Sidney Jones4 user’s menu D Default 2 Project P Project-1 Name Pinned Issues 3 Manage Plan Issues 3 Issue boards Milestones Iterations Wiki Code Build Secure Deploy Operate Monitor Analyze Settings Help Show more breadcrumbs Iteration cadences My title 2 Iterations 2 Search or go to… Open Dec 31, 2024 - Jan 1, 2025 Dec 31, 2024 - Jan 1, 2025 Correct Iteration Display by Issue count Issue weight Completed 33% 1 of 3 Incomplete 33% 1 of 3 Unstarted 33% 1 of 3 Burndown chart Issues 0 1 Remaining Guideline Burnup chart Issues 0 1 Total Completed Issues 3 Group by None Label All issues Title Weight Assignees Status Issue My title 6 #3 Closed Issue My title 5 #2 Sidney Jones4 In progress Issue My title 4 #1 Not started"
Timeout (30s) reached while running a waiting Capybara finder.
Consider using a non-waiting finder.
See https://www.cloudbees.com/blog/faster-rails-tests
# ./ee/spec/features/projects/iterations/user_views_iteration_spec.rb:28:in `block (5 levels) in <main>'
# ./ee/spec/features/projects/iterations/user_views_iteration_spec.rb:25:in `block (4 levels) in <main>'
Notice the banner properly shows Dec 31, 2024
, but the expected text is Dec 21
:
Also occurs in
- ee/spec/features/issues/issue_sidebar_spec.rb:189
- ee/spec/features/projects/iterations/iteration_cadences_list_spec.rb:28
- ee/spec/features/projects/work_items/work_item_spec.rb:22
Edited by Jay McCure