920 votes
0 answers
mocha.js - uncaught exception : Experience not defined when testing a Shopify web app using Cypress
I'm writing automated tests for a Shopify application using cypress When I finish filling the cart with items then click on the checkout button, I got this kind of error that prevents me to go to the checkout page :
(uncaught exception) Error: undefined status[500] response [{"message":"Experience not defined"}]
The following error originated from your application code, not from Cypress.It was caused by an unhandled promise rejection.
>undefined status[500] response [{"message":"Experience not defined"}]
When Cypress detects uncaught errors originated from your application it will automatically fail the current test.
This behavior is configurable, and you can choose to turn this off by listening to the uncaught:exception event.
This is the line when it heppens :
cy.get('.cart__checkout-form > .button').scrollIntoView().click({force:true});
Undefined asked
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
165 why does the login and password popup appear when you search for ajax using the api admin in shopify
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.