gorgeous-insurance-13289
02/02/2022, 8:35 PMcy.get('#element').click()
, what's happening in the background?
We're encountering an error which only happens when the cypress test runs. If we mimic its behavior manually we don't have any issues.
Here is [the test](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/pull/8174/files#diff-a00eb0a05c99c0a2bdfd49f3f79145e86aeeb09e909c68c3c8c42f3cbda2841dR52-R71)
Here is the page of the deploy environment that has [the component being tested](https://ibmdotcom-web-components-experimental.s3.us-east.cloud-object-storage.appdomain.cloud/deploy-previews/8174/iframe.html?id=components-cloud-masthead--default)
The failure:
dds-masthead | cloud platform (desktop)
✓ should have url for IBM logo (3613ms)
✓ should have cloud platform name (4120ms)
✓ should load top-nav with no more than one active item (4079ms)
(Attempt 1 of 3) should have tabbed-interface megamenus
(Attempt 2 of 3) should have tabbed-interface megamenus
1) should have tabbed-interface megamenus
✓ should have functioning search bar with typeahead (7118ms)
✓ should have contact, login, and create-account CTAs (5095ms)
1) dds-masthead | cloud platform (desktop)
should have tabbed-interface megamenus:
AssertionError: Timed out retrying after 90000ms: expected '<div#panel-0-0>' to be 'visible'
This element `<div#panel-0-0>` is not visible because its parent `<dds-cloud-megamenu-right-navigation>` has CSS property: `visibility: hidden`
at Context.eval (http://localhost:8081/__cypress/tests?p=tests/e2e-storybook/cypress/integration/masthead/cloud/cloud-masthead.e2e.js:150:33)
gorgeous-insurance-13289
02/02/2022, 8:41 PMgorgeous-insurance-13289
02/03/2022, 9:16 PMgorgeous-insurance-13289
02/03/2022, 9:17 PM.click('right')
where the click didn't happen in an area within the bounds of each tab's child text node seems to work as expectedgorgeous-insurance-13289
02/03/2022, 9:18 PMgorgeous-insurance-13289
02/03/2022, 9:19 PMgorgeous-insurance-13289
02/03/2022, 9:19 PMadventurous-dream-20049
02/03/2022, 9:29 PMminiature-application-21641
02/24/2022, 6:56 AMadventurous-dream-20049
02/24/2022, 4:15 PM