Можно ли использовать кипарис для автоматизации этого, чтобы я мог провести полные тесты на покупку e2e?cy.get('iframe[src*="https://js.stripe.com/v3/"]').should('be.visible');
cy.origin('https://js.stripe.com', () => {
cy.get('[data-testid="card-accordion-item-button"]').click();
});
< /code>
https://js.stripe.com/v3/embedded-check ... shableKey=...
< /code>
Timed out retrying after 4000ms: The command was expected to run against origin https://js.stripe.com but the application is at origin http://localhost:7000.
This commonly happens when you have either not navigated to the expected origin or have navigated away unexpectedly.
Using cy.origin() to wrap the commands run on http://localhost:7000 will likely fix this issue.
cy.origin('http://localhost:7000', () => {
})
< /code>

Подробнее здесь: https://stackoverflow.com/questions/797 ... d-checkout
Мобильная версия