Failure in qa/specs/features/ee/browser_ui/3_create/repository/assign_code_owners_spec.rb
https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/667665
22) Create Codeowners merge request assigns code owners as approvers
Failure/Error: expect(mr_page.approvers).to include(approver.name)
expected ["QA User1 (Quality Team's Test Account) "] to include "gitlab-qa-user1"
# ./qa/specs/features/ee/browser_ui/3_create/repository/assign_code_owners_spec.rb:64:in `block (4 levels) in <module:QA>'
# ./qa/scenario/actable.rb:16:in `perform'
# ./qa/specs/features/ee/browser_ui/3_create/repository/assign_code_owners_spec.rb:62:in `block (3 levels) in <module:QA>'
approver.name is from Resource::User, which should be retrieved from the API, but the code is
def name
@name ||= api_resource&.dig(:name) || username
end
So it's possible that username is being returned instead of a value from api_resource&.dig(:name), though I'm not sure why.