Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel committed Jun 4, 2024
1 parent b306939 commit 9a9a417
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/tests/integration/organization/account.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ test.describe('Testing accounts', () => {
const delAccount = await createAccount(context, `TestDeleteAccount_${Date.now().toString()}`);
const listComponent = new ListComponent(page);
await listComponent.openRowMenu(listComponent.getRowByText(delAccount.name));
await page.locator('.mat-menu-content button', { hasText: `Delete` }).first().click();
await page.locator('.mat-mdc-menu-content button', { hasText: `Delete` }).first().click();
await page.locator('os-user-delete-dialog button', { hasText: `Yes, delete` }).first().click();
await expect(listComponent.getRowByText(delAccount.name)).toBeHidden();
await logout(context);
Expand Down
2 changes: 1 addition & 1 deletion client/tests/integration/organization/committee.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ test.describe('Testing committees', () => {
let delCommittee = await createCommittee(context, `TestDeleteCommittee ${Date.now().toString()}`);
const listComponent = new ListComponent(page);
await listComponent.openRowMenu(listComponent.getRowByText(delCommittee.name));
await page.locator('.mat-menu-content button', { hasText: `Delete` }).first().click();
await page.locator('.mat-mdc-menu-content button', { hasText: `Delete` }).first().click();
await page.locator('os-choice-dialog button', { hasText: `Yes` }).first().click();
await expect(listComponent.getRowByText(delCommittee.name)).toBeHidden();
await logout(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export class ListComponent {

async openRowMenu(row: Locator) {
await row.scrollIntoViewIfNeeded();
await row.locator('button.mat-menu-trigger').click();
await row.locator('button.mat-mdc-menu-trigger').click();
}
}

0 comments on commit 9a9a417

Please sign in to comment.