From fb956f2604aec9e74d84ffc1ae55c1f7f4fa5354 Mon Sep 17 00:00:00 2001 From: Yanick Minder Date: Tue, 5 Nov 2024 12:45:19 +0100 Subject: [PATCH] fix tabbing tests --- frontend/cypress/e2e/tab.cy.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/cypress/e2e/tab.cy.ts b/frontend/cypress/e2e/tab.cy.ts index 2f9195aac9..e3d30b3cf2 100644 --- a/frontend/cypress/e2e/tab.cy.ts +++ b/frontend/cypress/e2e/tab.cy.ts @@ -72,7 +72,7 @@ describe('Tab workflow tests', () => { } function openKeyresultDetail() { - cy.get('.objective').first().focus(); + cy.get("[src='assets/icons/ongoing-icon.svg']").parentsUntil('.objective').focus(); cy.tabForwardUntil('[data-testId="key-result"]'); cy.focused().contains('Fail'); cy.focused().contains('Commit'); @@ -298,12 +298,12 @@ describe('Tab workflow tests', () => { closeDialogWithCross(); }); - it('Tab to key result, open detail view and close', () => { + it.only('Tab to key result, open detail view and close', () => { openKeyresultDetail(); closeDialogWithCross(); }); - it('Edit key result with tab', () => { + it.only('Edit key result with tab', () => { openKeyresultDetail(); cy.wait(500); cy.tabForwardUntil('[data-testId="edit-keyResult"]'); @@ -321,7 +321,7 @@ describe('Tab workflow tests', () => { cy.contains('This has been edited by Cypress'); }); - it('Delete key result with tab', () => { + it.only('Delete key result with tab', () => { openKeyresultDetail(); cy.wait(500); cy.tabForwardUntil('[data-testId="edit-keyResult"]');