Fix sidebar spec

Closed username-removed-408677 requested to merge fix-sidebar-spec into multiple_assignees_review

What does this MR do?

Fixes the sidebar spec so that rspec 6 20 passes as found in https://gitlab.com/gitlab-org/gitlab-ee/builds/15426868

Are there points in the code the reviewer needs to double check?

Shouldn't be

Why was this MR needed?

Fixes failing build

Screenshots (if relevant)

None

Does this MR meet the acceptance criteria?

Yes

What are the relevant issue numbers?

#1904 (closed)