Fix browser tests for Radix migration (#20783)

DES-696

We upgraded the AdminX Design System to use Radix UI components. However
browser tests fail for checkboxes at the moment which must be fixed for
release.
This commit is contained in:
Peter Zimon 2024-08-19 16:22:36 +02:00 committed by GitHub
parent 1e3edc0b5a
commit d66a0e3991
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -147,7 +147,7 @@ test.describe('Admin', () => {
const portalSettings = sharedPage.getByTestId('portal-modal');
await portalSettings.locator('input[type=checkbox]').first().waitFor();
await portalSettings.locator('button[role="checkbox"]').first().waitFor();
await expect(portalSettings.getByLabel(tierName).first()).toBeHidden();
@ -172,7 +172,7 @@ test.describe('Admin', () => {
const portalSettings = sharedPage.getByTestId('portal-modal');
await portalSettings.locator('input[type=checkbox]').first().waitFor();
await portalSettings.locator('button[role="checkbox"]').first().waitFor();
await expect(portalSettings.getByLabel(tierName).first()).toBeVisible();