560 blogs tracked7,114 posts indexed

#advice

5 posts · 1 company · newest first

1

Test Auto-healing Is A Red Flag (opens on the source site)

Well, I am happy to report Cypress-the-company is all in on test auto-healing in its new cy.prompt command (which I recreated locally as cypress-think plugin). Let's look at the screenshots Cypress put in the blog post: The test shows Cypress auto-healing in practice. The test had a prompt like "Turn on dark mode", which used to resolve to some button (unclear). Now the button is gone, but the test has been "auto-healed" to find another button. We can see the details of the healing by clicking on the "Turn on dark mode" step in the Command Log: Please do not use any auto-healing in your…

processtestingexcerpt only · body stays at the source
From the web
4

Copilot Instructions Example (opens on the source site)

I have described using Use Copilot Instructions And Page Objects to quickly develop end-to-end Cypress tests. This blog post gives another concrete example. You can find the source code in the repo bahmutov/copilot-instructions-example. First, I wrote a page object file to implement common TodoMVC application test commands: visit the app and wait for it to load reset the backend data to zero todos or the given number of items cypress/e2e/todomvc.po.js1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 export const TodoMVC = { visit() { cy.step('visit the app')…

advicecypressexcerpt only · body stays at the source
From the web
5

Verify Then Control The Data (opens on the source site)

Imagine we are testing a web page that receives two numbers from the server and then shows their sum In the Command Log you can see the two GET /random-digit calls the web page makes to the server. The server responds with {n: ...} JSON object. The page should add these two numbers and show the correct sum How would you test this page? I see 4 different approaches 🎓 This blog post is based on the lessons from my Cypress Network Testing Exercises course. Compute the data in the test The simplest approach we can take is to look up the numbers shown on the page and compute the expected sum…

processtestingexcerpt only · body stays at the source
From the web
5 shown

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.