From 9a9a4173926b7368c28f92fb1845572fb99e07c0 Mon Sep 17 00:00:00 2001 From: Bastian Rihm Date: Tue, 4 Jun 2024 19:03:26 +0200 Subject: [PATCH] Fix e2e tests --- client/tests/integration/organization/account.spec.ts | 2 +- client/tests/integration/organization/committee.spec.ts | 2 +- .../tests/integration/page-objects/components/list-component.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/tests/integration/organization/account.spec.ts b/client/tests/integration/organization/account.spec.ts index 95d80ef092..f737de27f1 100644 --- a/client/tests/integration/organization/account.spec.ts +++ b/client/tests/integration/organization/account.spec.ts @@ -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); diff --git a/client/tests/integration/organization/committee.spec.ts b/client/tests/integration/organization/committee.spec.ts index e3446e62fd..8ccaa3d86b 100644 --- a/client/tests/integration/organization/committee.spec.ts +++ b/client/tests/integration/organization/committee.spec.ts @@ -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); diff --git a/client/tests/integration/page-objects/components/list-component.ts b/client/tests/integration/page-objects/components/list-component.ts index d55a4483d1..ccdd3205e1 100644 --- a/client/tests/integration/page-objects/components/list-component.ts +++ b/client/tests/integration/page-objects/components/list-component.ts @@ -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(); } }