Skip to content

Header menu close test is inconsistent

The "Header component on narrow viewports clicking the close button hides search bar" end-to-end test in header.cy.ts fails more often than not with a strange error message:

(uncaught exception) TypeError: Cannot read properties of null (reading 'update')

See also job 465005.

I can manually verify that clicking the close button does indeed hide the search bar, so the problem is in the test.