describe(`Credit Card 3ds - New AmEx Happy Flow`, () => {
before(() => {
cy.setup();
cy.createDutchPrivateCustomer().as('customer');
});
it('Customer finishes order with newly added American Express 3DS card', () => {
cy.get('@customer').then(({ email, password }) => cy.login(email, password));
// etc.
});
});
However, when the test fails, it and retries it says:
cy.get() could not find a registered alias for: @customer.
You have not aliased anything yet.
So for some reason the test alias context is lost with this plugin.
Another option would be that we can say that the plugin runs the before hook again for retries.
However, when the test fails, it and retries it says:
So for some reason the test alias context is lost with this plugin. Another option would be that we can say that the plugin runs the before hook again for retries.