-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- increase memory limit for backend - use snackbar for error messages in client
- Loading branch information
Showing
6 changed files
with
58 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ context('Error handling', () => { | |
describe('Error getting user', () => { | ||
before(() => { | ||
cy.intercept('/api/v1/users/findUserByUrl?url=christian-gawron', { statusCode: 500, body: { error: "no data" } }).as('getUser') | ||
cy.visit('/schedule/christian-gawron/sprechstunde') | ||
cy.visit('/users/christian-gawron/sprechstunde') | ||
}) | ||
|
||
it('Should show error message', () => { | ||
|
@@ -26,13 +26,12 @@ context('Scheduling page', () => { | |
describe('Visit scheduling page and schedule appointment', () => { | ||
before(() => { | ||
cy.intercept('POST', '/api/v1/**', { body: { error: 'not possible' } }).as('apiCheck') | ||
cy.visit('/schedule/christian-gawron/sprechstunde') | ||
cy.visit('/users/christian-gawron/sprechstunde') | ||
}) | ||
|
||
it('Check simple schedule flow', () => { | ||
cy.wait(['@getUser', '@getEvent', '@getAvailable'], { timeout: 10000 }) | ||
cy.get('h6').should('contain', 'Christian Gawron') | ||
cy.get('.MuiPickersDay-today').should('contain', '25') | ||
cy.get('.MuiPickersDay-today').should('contain', '25').click() | ||
cy.contains('07:00').click() | ||
cy.get('[name=name]').type('Max Mustermann') | ||
cy.get('[name=email]').type('[email protected]') | ||
|
@@ -47,13 +46,12 @@ context('Scheduling page', () => { | |
describe('Error creating appointment', () => { | ||
before(() => { | ||
cy.intercept('POST', '/api/v1/**', { statusCode: 400, body: { error: 'not possible' } }).as('apiCheck') | ||
cy.visit('/schedule/christian-gawron/sprechstunde') | ||
cy.visit('/users/christian-gawron/sprechstunde') | ||
}) | ||
|
||
it('should show an error message', () => { | ||
cy.wait(['@getUser', '@getEvent', '@getAvailable'], { timeout: 10000 }) | ||
cy.get('h6').should('contain', 'Christian Gawron') | ||
cy.get('.MuiPickersDay-today').should('contain', '25') | ||
cy.get('.MuiPickersDay-today').should('contain', '25').click() | ||
cy.contains('07:00').click() | ||
cy.get('[name=name]').type('Max Mustermann') | ||
cy.get('[name=email]').type('[email protected]') | ||
|
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