[Bug 33400] New: Titles_spec.ts is failing because alert is not visible
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33400 Bug ID: 33400 Summary: Titles_spec.ts is failing because alert is not visible Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: ASSIGNED Severity: normal Priority: P5 - low Component: Test Suite Assignee: jonathan.druart+koha@gmail.com Reporter: jonathan.druart+koha@gmail.com QA Contact: testopia@bugs.koha-community.org <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 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33400 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |33370 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33370 [Bug 33370] Cypress tests are failing randomly -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33400 --- Comment #1 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- I have stated on bug 33370 comment 14 that it was failing consistently, but I don't think it is actually... I am having trouble trying to recreate the failure now... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33400 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33400 --- Comment #2 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 149120 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149120&action=edit 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 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33400 --- Comment #3 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Only signoff if you recreate the failure! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33400 --- Comment #4 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- See also https://docs.cypress.io/guides/core-concepts/interacting-with-elements#Scrol... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33400 Pedro Amorim <pedro.amorim@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pedro.amorim@ptfs-europe.co | |m --- Comment #5 from Pedro Amorim <pedro.amorim@ptfs-europe.com> --- Without applying patch yarn cypress run: * 1st run: no issues * 2nd run: Package CRUD operations Add package: AssertionError: Timed out retrying after 4000ms: Expected to find content: 'New package' but never did. at Context.eval (http://localhost:8081/__cypress/tests?p=t/cypress/integration/Packages_spec....) I don't think this is the same error, it's failing to find the "New package" on package CRUD, instead of failing to find the dialog in titles. * 3rd run: no issues * 4th run: no issues * 5th run: no issues -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33400 --- Comment #6 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- (In reply to Pedro Amorim from comment #5)
* 2nd run: Package CRUD operations Add package: AssertionError: Timed out retrying after 4000ms: Expected to find content: 'New package' but never did. at Context.eval (http://localhost:8081/__cypress/tests?p=t/cypress/integration/Packages_spec. ts:194:12)
I don't think this is the same error, it's failing to find the "New package" on package CRUD, instead of failing to find the dialog in titles.
Yes, that's different. I think this one will be fixed by bug 33408. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33400 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paul.derscheid@lmscloud.de --- Comment #7 from Paul Derscheid <paul.derscheid@lmscloud.de> --- I just noticed that cypress relies on an x86_64 dependency. Maybe we should add support for arm64 too. yarn run v1.22.19 $ cypress run It looks like this is your first time using Cypress: 9.7.0 Cypress failed to start. This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies Please refer to the error below for more details. ---------- qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory ---------- Platform: linux-x64 (Debian - 11) Cypress Version: 9.7.0 error Command failed with exit code 1. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33400 --- Comment #8 from Pedro Amorim <pedro.amorim@ptfs-europe.com> --- Do we still need this bug? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33400 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|Needs Signoff |RESOLVED --- Comment #9 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- (In reply to Pedro Amorim from comment #8)
Do we still need this bug?
Closing, will reopen if it reappears. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org