eXide icon indicating copy to clipboard operation
eXide copied to clipboard

[BUG] dbmanager spec is flaky

Open duncdrum opened this issue 2 years ago • 2 comments

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):

  • eXist-db Version: [6.2.0, 7.0.0-SNAPSHOT]
  • Java Version: [8, 17]
  • Node Version: [18, 20]
  • App Version: [3.5.1]

duncdrum avatar Dec 19 '23 21:12 duncdrum

Related: #652

joewiz avatar Apr 22 '24 19:04 joewiz

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)

joewiz avatar Aug 25 '24 18:08 joewiz