Skip to content

Commit

Permalink
fix teammanagement e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Nov 4, 2024
1 parent fe138a9 commit c9ee258
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions frontend/cypress/e2e/teammanagement.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('Team management tests', () => {
cy.getByTestId('remove-from-member-list').click();

// dialog
cy.contains(`Jaya Norris wirklich aus Team ${teamName} entfernen?`);
cy.contains(`Möchtest du Jaya Norris wirklich aus dem Team '${teamName}' entfernen?`);
cy.getByTestId('confirm-yes').click();

cy.wait('@removeUser');
Expand All @@ -60,7 +60,7 @@ describe('Team management tests', () => {
cy.getByTestId('remove-from-member-list').click();

// cancel dialog
cy.contains(`Jaya Norris wirklich aus Team ${teamName} entfernen?`);
cy.contains(`Möchtest du Jaya Norris wirklich aus dem Team '${teamName}' entfernen?`);
cy.getByTestId('confirm-no').click();

cy.get('@removeUser.all').then((interceptions) => {
Expand Down Expand Up @@ -313,7 +313,7 @@ describe('Team management tests', () => {

// add findus peterson
cy.getByTestId('search-member-to-add').click().type('Find', { delay: 1 });
cy.get(matOption).contains('Findus Peterson').click();
cy.contains(matOption, 'Findus Peterson').click();

// add robin papierer
cy.getByTestId('search-member-to-add').click();
Expand Down Expand Up @@ -344,6 +344,7 @@ describe('Team management tests', () => {
return;
}
$row.find(`[data-testId='edit-role']`).click();
cy.wait(500); // wait for dialog to open
})
.then(() => {
cy.getByTestId('select-team-role').click();
Expand All @@ -364,7 +365,7 @@ describe('Team management tests', () => {
it('should remove BBT membership of findus', () => {
navigateToUser('Findus Peterson');
cy.getByTestId('delete-team-member').click();
cy.getByTestId('cancelDialog-confirm').click();
cy.getByTestId('confirm-yes').click();
cy.get('app-member-detail').contains('/BBT').should('not.exist');
});

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"USER_FROM_TEAM":{
"TITLE": "Mitglied entfernen",
"TEXT": "Möchtest du {{user}} wirklich aus dem Team '{{team}}'entfernen?"
"TEXT": "Möchtest du {{user}} wirklich aus dem Team '{{team}}' entfernen?"
}
}
},
Expand Down

0 comments on commit c9ee258

Please sign in to comment.