Skip to content

Commit

Permalink
Update activities cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorreem committed Aug 1, 2023
1 parent 2868dc7 commit 92f1d26
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cypress/integration/activities.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ describe('A logged in user should be able to navigate to activities and do an ex
it('Should go to the activities page and click on an exercise', () => {
cy.get(`[qa-id=secondary-nav-activities-button]`).should('exist').click(); //navigate to activities

cy.get('h3').contains('Thought diaries').should('exist').click(); //check thought diaries exercise exists and open it
cy.get('h3').contains('Thought diaries').should('exist').click(); //check click first exercise exists and open it

// WIP until Activities page is finalised
cy.get('.MuiCollapse-root.MuiCollapse-entered') //check the audio file exists in accordian
.should('exist')
.get('p')
.contains('Thought diaries')
.should('exist');
});

after(() => {
Expand Down

0 comments on commit 92f1d26

Please sign in to comment.