eXist-db / eXide

A web-based XQuery IDE for eXist-db
GNU General Public License v3.0
45 stars 32 forks source link

[BUG] dbmanager spec is flaky #651

Open duncdrum opened 11 months ago

duncdrum commented 11 months ago

Describe the bug

the spec is flaky because it doesn't reliably deal with the initial notice windows exide offers. So tests will fail because the elements that cypress is trying to interact with aren't visible or focused.

Expected behavior Robust tests with predictable behaviour

Screenshots

Screenshot 2023-12-19 at 22 27 13

Context (please always complete the following information):

joewiz commented 7 months ago

Related: #652

joewiz commented 3 months ago

Here's something strange that's perhaps related? @line-o's PR #711 passed CI, but the merge commit failed CI: https://github.com/eXist-db/eXide/actions/runs/10540075485. The failing tests involved dbmanager:

  19 passing (1m)
  2 failing

  1) DB Manager
       DB Manager operations
         cut operation
           should create collection to be copied:
     AssertionError: Timed out retrying after 4000ms: Expected to find content: 'toBeCopiedAéB' within the selector: 'div[role=gridcell][col-id=name]' but never did.
      at Context.eval (http://localhost:8080/__cypress/tests?p=cypress/integration/dbmanager.spec.js:354:75)

  2) DB Manager
       DB Manager operations
         cut operation
           should cut the collection:
     AssertionError: Timed out retrying after 4000ms: Expected to find content: 'toBeCopiedAéB' within the selector: 'div[role=gridcell][col-id=name]' but never did.
      at Context.eval (http://localhost:8080/__cypress/tests?p=cypress/integration/dbmanager.spec.js:381:14)