-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from labs14-brav/case-overview-user
Case overview user
- Loading branch information
Showing
17 changed files
with
1,314 additions
and
705 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/// <reference types="Cypress" /> | ||
|
||
context('Create Case', () => { | ||
beforeEach(() => { | ||
cy.visit('https://brav-staging.netlify.com') | ||
}) | ||
|
||
it('has a case form', () => { | ||
/** | ||
* User Login | ||
*/ | ||
|
||
cy.get('[data-testid="login-button"]').click() | ||
cy.contains('Sign in with email').click() | ||
cy.get('input[name="email"]').type('[email protected]') | ||
cy.contains('Next').click() | ||
cy.get('input[name="password"]').type('secret') | ||
cy.contains('Sign In').click() | ||
cy.wait(1000) | ||
cy.get('.bravHeader').contains("Brāv") | ||
|
||
/** | ||
* View Form | ||
*/ | ||
|
||
cy.contains('Create a Case').click() | ||
cy.contains('button', 'Non-Court Referral') | ||
cy.contains('button', 'Court Referral').click() | ||
cy.wait(1000) | ||
cy.get('[data-testid="heading-h3"]').contains("Case Form") | ||
}) | ||
}) |
34 changes: 34 additions & 0 deletions
34
client/cypress/integration/examples/search-mediators.spec.js
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,34 @@ | ||
/// <reference types="Cypress" /> | ||
|
||
context('Search Mediators', () => { | ||
beforeEach(() => { | ||
cy.visit('https://brav-staging.netlify.com') | ||
}) | ||
|
||
it('has a mediator search', () => { | ||
/** | ||
* User Login | ||
*/ | ||
|
||
cy.get('[data-testid="login-button"]').click() | ||
cy.contains('Sign in with email').click() | ||
cy.get('input[name="email"]').type('[email protected]') | ||
cy.contains('Next').click() | ||
cy.get('input[name="password"]').type('secret') | ||
cy.contains('Sign In').click() | ||
cy.wait(1000) | ||
cy.get('.bravHeader').contains("Brāv") | ||
|
||
/** | ||
* Search mediators | ||
*/ | ||
|
||
cy.contains('h6', 'Court Case') | ||
cy.contains('button', 'Find a Mediator').click() | ||
cy.contains('h1', 'Search for a Mediator') | ||
cy.get('input[name="specialization"]') | ||
cy.get('input[name="language"]') | ||
cy.get('input[name="price"]') | ||
cy.get('input[name="experience"]') | ||
}) | ||
}) |
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,18 @@ | ||
/// <reference types="Cypress" /> | ||
|
||
context('User Login', () => { | ||
beforeEach(() => { | ||
cy.visit('https://brav-staging.netlify.com') | ||
}) | ||
|
||
it('has a login form', () => { | ||
cy.get('[data-testid="login-button"]').click() | ||
cy.contains('Sign in with email').click() | ||
cy.get('input[name="email"]').type('[email protected]') | ||
cy.contains('Next').click() | ||
cy.get('input[name="password"]').type('secret') | ||
cy.contains('Sign In').click() | ||
cy.wait(1000) | ||
cy.get('.bravHeader').contains("Brāv") | ||
}) | ||
}) |
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 @@ | ||
/// <reference types="Cypress" /> | ||
|
||
context('Search Mediators', () => { | ||
beforeEach(() => { | ||
cy.visit('https://brav-staging.netlify.com') | ||
}) | ||
|
||
it('has user settings', () => { | ||
/** | ||
* User Login | ||
*/ | ||
|
||
cy.get('[data-testid="login-button"]').click() | ||
cy.contains('Sign in with email').click() | ||
cy.get('input[name="email"]').type('[email protected]') | ||
cy.contains('Next').click() | ||
cy.get('input[name="password"]').type('secret') | ||
cy.contains('Sign In').click() | ||
cy.wait(1000) | ||
cy.get('.bravHeader').contains("Brāv") | ||
|
||
/** | ||
* User Settings | ||
*/ | ||
|
||
cy.contains('Settings').click() | ||
cy.contains('h3', 'Site settings') | ||
cy.get('a[href="/users/mediator-registration"]').contains('Become a Mediator') | ||
cy.get('[data-testid="button-deactivate-account"]').contains('Deactivate Account') | ||
}) | ||
}) |
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
Oops, something went wrong.