Skip to content

Commit

Permalink
check for focues of threedot menu after dialog closes
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Nov 21, 2024
1 parent 8ef83e3 commit 20ada41
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions frontend/cypress/e2e/tab.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,19 @@ describe('Tab workflow tests', () => {
focusedShouldHaveTestId('close-dialog');
tabAndCheck('changeInfo');
cy.tabForward();
cy.focused().closest('mat-radio-button').should('have.attr', 'data-testId', 'fail-radio');
editInputFields('Edited by Cypress');
cy.tabForward();
editInputFields('Edited by Cypress too');
cy.tabForward();
cy.tabForward();
cy.focused().contains('Speichern');
cy.realPress('Enter');
cy.focused().invoke('attr', 'data-testid').should('contain', 'three-dot-menu');
cy.focused().parentsUntil('#objective-column').last().contains('Edited by Cypress');
});

it('Duplicate objective with tab', () => {
openThreeDotMenu();
cy.realPress('ArrowDown');
cy.realPress('ArrowDown');
cy.realPress('ArrowDown');
Expand All @@ -327,7 +339,6 @@ describe('Tab workflow tests', () => {
cy.focused().contains('Speichern');
cy.realPress('Enter');
cy.wait(500);
cy.get('.objective').first().focus();
cy.tabBackwardUntil('[data-testId="quarterFilter"]');
cy.focused().contains('GJ');
cy.realPress('ArrowDown');
Expand Down

0 comments on commit 20ada41

Please sign in to comment.