-
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.
set type delay gloabl and remove manual set
- Loading branch information
1 parent
8a5f317
commit f4c81a1
Showing
11 changed files
with
73 additions
and
73 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
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 |
---|---|---|
|
@@ -64,7 +64,7 @@ describe('Team management tests', () => { | |
|
||
cy.contains('Teamverwaltung'); | ||
cy.getByTestId('add-team').click(); | ||
cy.getByTestId('add-team-name').click().clear().type(teamName, { delay: 0 }); | ||
cy.getByTestId('add-team-name').click().clear().type(teamName); | ||
cy.getByTestId('add-team-save').click(); | ||
cy.wait('@addTeam'); | ||
cy.contains(teamName); | ||
|
@@ -150,7 +150,7 @@ describe('Team management tests', () => { | |
|
||
describe('Search', () => { | ||
it('Search user', () => { | ||
cy.get('app-team-management-banner').getByTestId('teamManagementSearch').click().type('pa', { delay: 0 }); | ||
cy.get('app-team-management-banner').getByTestId('teamManagementSearch').click().type('pa'); | ||
|
||
cy.contains('.mat-mdc-autocomplete-panel mat-option', 'Paco Eggimann ([email protected])'); | ||
cy.contains('.mat-mdc-autocomplete-panel mat-option', 'Paco Egiman ([email protected])'); | ||
|
@@ -160,15 +160,15 @@ describe('Team management tests', () => { | |
}); | ||
|
||
it('Search team', () => { | ||
cy.get('app-team-management-banner').getByTestId('teamManagementSearch').click().type('we are', { delay: 0 }); | ||
cy.get('app-team-management-banner').getByTestId('teamManagementSearch').click().type('we are'); | ||
|
||
cy.contains('.mat-mdc-autocomplete-panel mat-option', 'we are cube.³').click(); | ||
|
||
cy.contains('app-member-list h2', 'we are cube.³'); | ||
}); | ||
|
||
it('Search mixed', () => { | ||
cy.get('app-team-management-banner').getByTestId('teamManagementSearch').click().type('puz', { delay: 0 }); | ||
cy.get('app-team-management-banner').getByTestId('teamManagementSearch').click().type('puz'); | ||
|
||
cy.contains('.mat-mdc-autocomplete-panel .mat-mdc-optgroup-label', 'Members'); | ||
cy.contains('.mat-mdc-autocomplete-panel .mat-mdc-optgroup-label', 'Teams'); | ||
|
@@ -206,11 +206,11 @@ describe('Team management tests', () => { | |
cy.contains('Angabe benötigt'); | ||
cy.contains('E-Mail ungültig'); | ||
cy.getByTestId('email-col_2').focus(); | ||
cy.realType('@puzzle.ch', { delay: 0 }); | ||
cy.realType('@puzzle.ch'); | ||
cy.contains('E-Mail ungültig').should('not.exist'); | ||
cy.contains('E-Mail existiert bereits'); | ||
cy.tabBackward(); | ||
cy.realType('Papirer', { delay: 0 }); | ||
cy.realType('Papirer'); | ||
cy.contains('Angabe benötigt').should('not.exist'); | ||
|
||
// delete last entry | ||
|
@@ -346,7 +346,7 @@ describe('Team management tests', () => { | |
cy.get(matOption).contains(nameEsha).should('not.exist'); | ||
|
||
// add findus peterson | ||
cy.getByTestId('search-member-to-add').click().type('Find', { delay: 0 }); | ||
cy.getByTestId('search-member-to-add').click().type('Find'); | ||
cy.contains(matOption, 'Findus Peterson').click(); | ||
|
||
// add robin papierer | ||
|
@@ -437,7 +437,7 @@ 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, { delay: 0 }); | ||
cy.getByTestId('add-team-name').click().clear().type(teamName); | ||
cy.getByTestId('add-team-save').click(); | ||
cy.wait('@saveTeam'); | ||
cy.contains(teamName); | ||
|
@@ -450,9 +450,9 @@ function navigateToUser(userName: string) { | |
} | ||
|
||
function fillOutNewUser(firstname: string, lastname: string, email: string) { | ||
cy.realType(firstname, { delay: 0 }); | ||
cy.realType(firstname); | ||
cy.tabForward(); | ||
cy.realType(lastname, { delay: 0 }); | ||
cy.realType(lastname); | ||
cy.tabForward(); | ||
cy.realType(email, { delay: 0 }); | ||
cy.realType(email); | ||
} |
Oops, something went wrong.