-
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.
test: Update tests to show the logs before trying to view them.
Also remove the unnecessary, failing loading spinner test.
- Loading branch information
Showing
2 changed files
with
3 additions
and
4 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 |
---|---|---|
|
@@ -10,10 +10,6 @@ describe('Loggr End-to-end happy path tests', () => { | |
cy.clearDb(); | ||
}); | ||
|
||
it('Shows a loading spinner', () => { | ||
cy.contains('Loading'); | ||
}); | ||
|
||
it('Creates a new user', () => { | ||
cy.get('.signup-link').click(); | ||
cy.get('#email').type('[email protected]'); | ||
|
@@ -52,12 +48,14 @@ describe('Loggr End-to-end happy path tests', () => { | |
// FUTURE: This might fail later when the test runs after 8am and we stop allowing end time to be before start time. | ||
cy.get('#endTime').type('08:00'); | ||
cy.get('form').submit(); | ||
cy.get(`[data-testid=show-all-logs]`).click(); | ||
cy.get('.note-display').contains('A permanent note'); | ||
|
||
cy.wait(500); // Give the firestore library a chance to persist the change | ||
}); | ||
|
||
it('Can delete the note', () => { | ||
cy.get(`[data-testid=show-all-logs]`).click(); | ||
cy.get('.delete-button').click(); | ||
cy.get('td').contains('No Data'); | ||
}); | ||
|
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