Cypress Framework , a product disappears from the bucket #22792
Replies: 3 comments 1 reply
-
It looks like your tests depend on the previous one. If that is the case, that is risky and not good practice. Cypress will clear cache and cookies between each test, so I imagine that is the reason the product disappears from the basket. Can you share your test code? |
Beta Was this translation helpful? Give feedback.
-
Hello, yes /// describe('Test on mf', () => { it('the user visiting Canvas LP', () => { it('The click on CTA button and uploads the file', () => {
}) it('the user on the configurator page and clicks on "Continue" the shoppingcart page', () => { // // cy.xpath("//label[normalize-space()='60x40 cm']") it('The user on shoppingcart page goes to logincheckout page', () => { it('The user on logincheckout page goes to the checkout page', () => { cy.wait(3000) }) }) |
Beta Was this translation helpful? Give feedback.
-
Thank you, it worked, now just one it() I figure out, how to split the code, in End to End purchase scenario in more it() |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there, I'm Vadim QA Engineer
I'm currently trying to automate my job website, https://meinfoto.de/ . The Back-End writen in Java.
The problem is. When the user is on the shopping cart page and clicks on go to the next page, the product is despairing from the bucket,
After clarification with Back-End dev, the suggestion was, might the problem with cookies. JSESSION cookie gets overwritten by Cypress framework.
Also I added to blockHosts: "*google-analytics.com", "*googletagmanager.com", "*google.com/ads/",
Video:
firstTest.cy.js.mp4
I haven't had this type of problem with Java and Selenium-based framework.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions