From 0cf50720fea647a6bef1d4e20c85624384872c29 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 14 Sep 2020 11:40:59 +0200 Subject: [PATCH] improve cypress debugging --- packages/webapp/cypress/integration/intergration.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/webapp/cypress/integration/intergration.spec.js b/packages/webapp/cypress/integration/intergration.spec.js index 8013b935..232f4ca7 100644 --- a/packages/webapp/cypress/integration/intergration.spec.js +++ b/packages/webapp/cypress/integration/intergration.spec.js @@ -19,7 +19,8 @@ context("Skynet", () => { cy.get('.home-upload input[type="file"]').attachFile(fileName); - cy.get(".home-uploaded-files").children().should("have.length", 1).scrollIntoView(); + cy.get(".home-upload").scrollIntoView(); + cy.get(".home-uploaded-files").children().should("have.length", 1); // wait max 2 minutes, the portal might be slow at times cy.wait("@upload", { responseTimeout: 2 * 60 * 1000 });