Disable WalkMe to avoid flaky Cypress end-to-end tests

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 });




Passionate engineer, UX advocator and snow chaser.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A custom SharePoint newsletter service

Kubernates is used by Spotify | TASK 16 | ARTH

PM2: Share the same daemon process between multiple users

Strategy Design Pattern


How I manage a small team with the help of Trello

Part two: serverless real-time ReactJS app — AWS IoT MQTT

Quickstart Guide for Python Eve: Setting up

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nate Liu

Nate Liu

Passionate engineer, UX advocator and snow chaser.

More from Medium

Dynamic Level Loading in Godot

What is Regression Testing for Software and How it Affects the Company’s Bottom-Line?

Single Responsibility Principle: Explained

Documenting Patterns is a Designer’s Job

Pencils on a Yellow Background