-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use aliases to remove unsafe chainings in cypress tests
- Loading branch information
1 parent
196beb0
commit bac9b3e
Showing
7 changed files
with
30 additions
and
20 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 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 |
---|---|---|
|
@@ -183,7 +183,6 @@ describe('Team management tests', () => { | |
.addAnotherUser() | ||
.enterUser('Stefan', 'Schmidt', '[email protected]') | ||
.addAnotherUser() | ||
|
||
.getFirstNames(); | ||
|
||
// test error messages | ||
|
@@ -331,7 +330,8 @@ describe('Team management tests', () => { | |
cy.get(matOption).contains(nameEsha).should('not.exist'); | ||
|
||
// add findus peterson | ||
cy.getByTestId('search-member-to-add').click().type('Find'); | ||
cy.getByTestId('search-member-to-add').as('member-search').click(); | ||
cy.get('@member-search').type('Find'); | ||
cy.contains(matOption, 'Findus Peterson').click(); | ||
|
||
// add robin papierer | ||
|
@@ -436,7 +436,9 @@ function checkRolesForEsha() { | |
function editTeamNameAndTest(teamName: string) { | ||
cy.intercept('PUT', '**/teams/*').as('saveTeam'); | ||
cy.getByTestId('editTeamButton').click(); | ||
cy.getByTestId('add-team-name').click().clear().type(teamName); | ||
cy.getByTestId('add-team-name').as('team-name').click(); | ||
cy.get('@team-name').clear(); | ||
cy.get('@team-name').type(teamName); | ||
cy.getByTestId('safe').click(); | ||
cy.wait('@saveTeam'); | ||
cy.contains(teamName); | ||
|
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