Skip to content

Commit

Permalink
fix tabbing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Nov 5, 2024
1 parent 735c592 commit fb956f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/cypress/e2e/tab.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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"]');
Expand All @@ -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"]');
Expand Down

0 comments on commit fb956f2

Please sign in to comment.