Skip to content

Commit

Permalink
fix: messaging tests (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
annarhughes authored Oct 29, 2024
1 parent 43eef19 commit a26534d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ export default defineConfig({
baseUrl: process.env.NEXT_PUBLIC_BASE_URL,
supportFile: 'cypress/support/index.js',
experimentalRunAllSpecs: true,
chromeWebSecurity: false,
},
});
8 changes: 4 additions & 4 deletions cypress/integration/tests/user-messaging.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ describe('A logged in public user can', () => {
cy.logInWithEmailAndPassword(email, password);
});

it('Navigate to the messaging page and begin a messaging', () => {
cy.visit('/'); //intitial home page visit
it('Navigate to the messaging page', () => {
cy.visit('/'); // initial home page visit
cy.get(`[qa-id=secondary-nav-messaging-button]`, { timeout: 8000 }).should('exist').click(); //go to messaging page
});

Expand All @@ -18,8 +18,8 @@ describe('A logged in public user can', () => {
cy.get('h2').contains('Tell us what’s on your mind');
cy.get('h2').contains('Meet the Bloom team');
cy.get('h2').contains('More about how Bloom’s Messaging works');
cy.checkImage('alt', 'Illustration of a person sitting');
cy.get('p').contains('Who is 1-1 Messaging for?');
cy.checkImage('Illustration of a person sitting', 'illustration_course_dbr');
cy.get('h3').contains('Who is 1-1 Messaging for?');
cy.get('p').contains(
'1-1 Messaging is available for everyone using Bloom, regardless of your background, race, age, disability, religion or belief, sexuality, gender identity or expression, or life circumstances—we are here for you.',
);
Expand Down

0 comments on commit a26534d

Please sign in to comment.