jina-ai / dashboard

Interactive UI for analyzing Jina logs, designing Flows and viewing Hub images
https://dashboard.jina.ai
Apache License 2.0
118 stars 61 forks source link

Cypress: Avoid detached Element without using { force: true } #265

Closed BastinJafari closed 3 years ago

BastinJafari commented 3 years ago

In our cypress test for flowView, the settings button gets detached from the DOM:

image

In order to fix it, we use

cy.dataName("settingsButton").click({ force: true })

Cypress though suggests avoiding using { force: true }.

We should find out what causes this and fix it accordingly.

aga11313 commented 3 years ago

Created a copy of this in #267 so closing