Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed Jun 12, 2024
1 parent bccd118 commit c6a7efc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cypress/e2e/schedule.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ describe('Schedule tests', () => {
it('adds new trainings', () => {
cy.toRoute('schedule');
cy.getByTestId('schedule-add-week-button').click();
cy.getByTestId('week-0').click();
cy.getByTestId('week-0-calendar-tab-1').click();
cy.addTraining(false);
cy.getByTestId('week-0-day-1').find('.training-card').should('exist');
cy.getByTestId('week-0-copy-button').click();
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Cypress.Commands.add('addTraining', (addWeek = true) => {
if (addWeek) {
cy.toRoute('schedule');
cy.getByTestId('schedule-add-week-button').click();
cy.getByTestId('week-0').click();
}
cy.getByTestId('week-0').click();
cy.getByTestId('week-0-add-training-button').click();
cy.getByTestId('edit-training-activity').click();
cy.get('.v-list-item').first().click();
Expand Down

0 comments on commit c6a7efc

Please sign in to comment.