Skip to content

Commit

Permalink
Activities cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorreem committed Aug 1, 2023
1 parent 2af0445 commit 2868dc7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cypress/integration/activities.cy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
describe('A logged in user should be able to navigate to activities and do an exercise', () => {
before(() => {
cy.cleanUpTestState();
cy.logInWithEmailAndPassword(Cypress.env('public_email'), Cypress.env('public_password'));
});

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

// WIP until Activities page is finalised
});

after(() => {
cy.logout();
});
});

0 comments on commit 2868dc7

Please sign in to comment.