Cypress Timeouts Too Short
Cypress tests are failing randomly. Confirmed running the tests locally, the fail too:
1) Check System Components:
AssertionError: Timed out retrying after 12000ms: Expected to find content: '/[1-9]/' within the element: <app-scanners-grid> but never did.
at Context.eval (webpack:///./cypress/e2e/01-neuvector-health.cy.js:50:30)
Increasing the cy.wait(1000) to cy.wait(5000) Help. Adding in retries also helps.
I also periodically see this which these fixes do not address. Not sure if we see these in the CI runs:
<--- Last few GCs --->
[68:0x3780017c000] 1194 ms: Mark-Compact (reduce) 116.7 (119.9) -> 116.7 (118.4) MB, 10.67 / 0.00 ms (average mu = 0.014, current mu = 0.006) last resort; GC in old space requested
[68:0x3780017c000] 1210 ms: Mark-Compact (reduce) 116.7 (118.4) -> 116.7 (118.4) MB, 16.41 / 0.00 ms (average mu = 0.006, current mu = 0.001) last resort; GC in old space requested
<--- JS stacktrace --->
#
# Fatal JavaScript out of memory: CALL_AND_RETRY_LAST
#
The Test Runner unexpectedly exited via a exit event with signal SIGTRAP
Please search Cypress documentation for possible solutions:
https://on.cypress.io
Edited by Michael Martin