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 60 forks source link

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

Closed lusloher closed 3 years ago

lusloher commented 3 years ago

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

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.

┆Issue is synchronized with this Asana task by Unito

lusloher commented 3 years ago

Link to feature: https://jinaai.productboard.com/feature-board/planning/features/7392714

franquil commented 3 years ago

I couldn't find Cypress's recommendation regarding to 'avoid using {force: true}'. At this page, it says "You can pass { force: true } to most action commands."

jina-bot commented 3 years ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days

jina-bot commented 3 years ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days

jina-bot commented 3 years ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days