Stabilize BVT Testing in Cypress

Leo Lin
Mar 12, 2021

--

Junyi use Cypress to build our BVT Testing. But we need to skip some of the tests since they aren’t stable. This short article will show you the reason and how we fix it.

Unstable Version

Stable Version

Reason

Cypress ensure the Automatic Waiting only if the function wrapped in a cy chain. Use invoke if you want to invoke functions synchronously with normal cy commands.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Leo Lin
Leo Lin

No responses yet

Write a response