improve cypress debugging

This commit is contained in:
Karol Wypchlo 2020-09-14 11:40:59 +02:00
parent 0403a5a8da
commit 0cf50720fe
1 changed files with 2 additions and 1 deletions

View File

@ -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 });