Tengo un requisito en el que necesito visitar la primera URL (por ejemplo, www.example.com) y realizar algunas operaciones de AWS, como verificar el archivo en AWS S3. Después de completar todas las operaciones, debe ir a la segunda URL (ex-www.example1.com) en la misma prueba. ¿Necesita una solución para esto?
Tendrá que ejecutarlos por separado para que esto funcione.
it("Test", function () { cy.visit('ex-www.example.com'); aws operations here }); it("Test", function () { cy.visit('ex-www.example1.com'); });Si intentas esto:
it("Full Happy Test", function () { cy.visit('ex-www.example.com'); aws operations here cy.visit('ex-www.example1.com'); });Obtendrá este error:
"cy.visit() failed because you are attempting to visit a URL that is of a different origin."