From f386fa409ebb791764363ea80ceacf5aa89dce20 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 4 Apr 2023 10:38:40 +0200 Subject: [PATCH] Bug 33400: Fix random Titles failure We are expecting the error, but it appears at the top and it's not in the viewport. Only happens in without using the cypress UI --- t/cypress/integration/Titles_spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/t/cypress/integration/Titles_spec.ts b/t/cypress/integration/Titles_spec.ts index 409f1fa68a0..a1fdfb61b2c 100644 --- a/t/cypress/integration/Titles_spec.ts +++ b/t/cypress/integration/Titles_spec.ts @@ -175,6 +175,7 @@ describe("Title CRUD operations", () => { error: "Something went wrong", }); cy.get("#titles_add").contains("Submit").click(); + cy.scrollTo('top'); cy.get("main div[class='dialog alert']").contains( "Something went wrong: Error: Internal Server Error" ); -- 2.25.1