From b8c5ca063240116dc6b8f9b48a48fb3711ce098a Mon Sep 17 00:00:00 2001 From: Oscar Kilhed Date: Thu, 1 May 2025 11:26:58 +0200 Subject: [PATCH] E2E: Fix failing old arch test. (#104793) * Wait for all queries * wait for the item to become a button instead --- e2e/old-arch/dashboards-suite/set-options-from-ui.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/old-arch/dashboards-suite/set-options-from-ui.spec.ts b/e2e/old-arch/dashboards-suite/set-options-from-ui.spec.ts index d7ec950487b..6d87f7ce939 100644 --- a/e2e/old-arch/dashboards-suite/set-options-from-ui.spec.ts +++ b/e2e/old-arch/dashboards-suite/set-options-from-ui.spec.ts @@ -71,7 +71,10 @@ describe('Variables - Set options from ui', () => { e2e.components.LoadingIndicator.icon().should('have.length', 0); - e2e.pages.Dashboard.SubMenu.submenuItemValueDropDownValueLinkTexts('AA').should('be.visible').click(); + e2e.pages.Dashboard.SubMenu.submenuItemValueDropDownValueLinkTexts('AA') + .should('be.visible') + .should('match', 'button') + .click(); e2e.pages.Dashboard.SubMenu.submenuItemValueDropDownDropDown() .should('be.visible')