Bugzilla – Attachment 149120 Details for
Bug 33400
Titles_spec.ts is failing because alert is not visible
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33400: Fix random Titles failure
Bug-33400-Fix-random-Titles-failure.patch (text/plain), 1.52 KB, created by
Jonathan Druart
on 2023-04-04 08:47:46 UTC
(
hide
)
Description:
Bug 33400: Fix random Titles failure
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-04-04 08:47:46 UTC
Size:
1.52 KB
patch
obsolete
>From f386fa409ebb791764363ea80ceacf5aa89dce20 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 4 Apr 2023 10:38:40 +0200 >Subject: [PATCH] Bug 33400: Fix random Titles failure > ><testcase name="Title CRUD operations Add title" time="0.0000" classname="Add title"> > <failure message="Timed out retrying after 4000ms: Expected to find element: `main div[class='dialog alert']`, but never found it." type="AssertionError"><![CDATA[AssertionError: Timed out retrying > after 4000ms: Expected to find element: `main div[class='dialog alert']`, but never found it. > at Context.eval (http://kohadev-intra.mydnsname.org:8081/__cypress/tests?p=t/cypress/integration/Titles_spec.ts:255:12)]]></failure> > </testcase> > >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33400
: 149120