From c83392cd0d282bd19f61229d8c8ca00df7fb9e1e Mon Sep 17 00:00:00 2001 From: k3yi0 Date: Wed, 15 Jun 2022 14:13:11 +0200 Subject: [PATCH] chore(cypress): first hover, then click --- ui/cypress/integration/admin.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/cypress/integration/admin.test.ts b/ui/cypress/integration/admin.test.ts index 1d01daaaf..15389f508 100644 --- a/ui/cypress/integration/admin.test.ts +++ b/ui/cypress/integration/admin.test.ts @@ -62,7 +62,10 @@ describe('Use Admin tab', () => { .realHover() .then(() => { cy.getByTestID(`${chronograf.user.name}--table-row`).within(() => { - cy.getByTestID('dropdown-toggle').click() + cy.getByTestID('dropdown-toggle').realHover().then(() => { + cy.getByTestID('dropdown-toggle').click() + }) + cy.getByTestID(`${chronograf.user.role[1]}-dropdown-item`) .realHover() .then(() => {