Nate Liu

Photo by Kind and Curious on Unsplash

WalkMe widgets can be useful at production site, guiding your user thru the system. However it can be causing flaky tests as it’s loaded asynchronously and cypress commands like cy.get may fail for being blocked by WalkMe widgets.

Simply intercept any API call from your WalkMe script and stub the response with 500, WalkMe then no longer loads and blocks your browser viewport:

// match url with string "walkme", or whatever your WalkMe script is sending request to
cy.intercept(/walkme/i, { statusCode: 500 });

--

--

Nate Liu

Nate Liu

Passionate engineer, UX advocator and snow chaser.