You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test fails without any apparent reason - there is no object on page that I'm trying to get attributes for after the form submit. In fact, there is nothing at all being executed after the form submit but the error is still there.
Desired behavior
The mentioned error should not appear and Cypress testing should continue.
Test code to reproduce
function test_checkout() {
cy.step( 'go to basket' );
cy.get( '#block-cart .cart-block--summary a' ).click();
cy.get('#commerce_cart_form-cart-ajax-wrapper table tbody tr').should('be.visible.and.have.length', 1);
cy.step( 'go to payment and checkout' );
// the error will happen after the following line:
cy.get('#commerce_cart_form-cart-ajax-wrapper #edit-actions #edit-checkout').click();
}
// test logic
describe('AkeVino homepage', () => {
beforeEach(() => {
cy.visit('https://akevino.sk/');
cy.step('Do we have a homepage?');
cy.get('body').should('have.class', 'path-frontpage');
});
it('should add new vine into the basket and go to payment and delivery step', () => {
cy.step( 'adding to basket' );
cy.get( '.block-views-blockhomepage-products-block-new-wines .views-view-responsive-grid__item:first .button--add-to-cart' ).click();
cy.get( '.block-views-blockhomepage-products-block-new-wines .views-view-responsive-grid__item:first .button--add-to-cart' ).parent().should('have.class', 'add-to-cart-clicked');
cy.waitUntil(() => cy.get('.block-views-blockhomepage-products-block-new-wines .views-view-responsive-grid__item:first .button--add-to-cart').should('not.have.class', 'add-to-cart-clicked'));
cy.get( '#block-cart .cart-block--summary__count' ).should('contain.text', '1');
test_checkout();
});
});
Current behavior
The test fails without any apparent reason - there is no object on page that I'm trying to get attributes for after the form submit. In fact, there is nothing at all being executed after the form submit but the error is still there.
Desired behavior
The mentioned error should not appear and Cypress testing should continue.
Test code to reproduce
Cypress Version
13.15.1
Node version
20.15.1
Operating System
Windows 11
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: