-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02e8489
commit e1e388f
Showing
7 changed files
with
47 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
describe('A logged in public user can', () => { | ||
const email = `cypresstestemail+${Date.now()}@chayn.co`; | ||
const password = 'testtesttest'; | ||
|
||
before(() => { | ||
cy.cleanUpTestState(); | ||
cy.createUser({ emailInput: email, passwordInput: password }); | ||
cy.logInWithEmailAndPassword(email, password); | ||
}); | ||
|
||
it('Navigate to the messaging page and begin a messaging', () => { | ||
cy.visit('/'); //intitial home page visit | ||
cy.get(`[qa-id=secondary-nav-messaging-button]`, { timeout: 8000 }).should('exist').click(); //go to messaging page | ||
}); | ||
|
||
it('see the More about section', () => { | ||
cy.visit('/messaging'); | ||
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.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.', | ||
); | ||
}); | ||
|
||
after(() => { | ||
cy.logout(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters