Skip to content

Commit

Permalink
fix(dialog): correct the test
Browse files Browse the repository at this point in the history
  • Loading branch information
DobroTora committed Jan 28, 2025
1 parent 6f2894d commit 46d0ad8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/dialog/dialog.pw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ test.describe("Accessibility tests for playwright mock components and storybook
});

[true, false].forEach((enableBackgroundUIValue) => {
test(`verify visibility of background overlay when enableBackgroundUI prop is set to ${enableBackgroundUIValue}`, async ({
test(`verify visibility of backgroundUILocatorElement when enableBackgroundUI prop is set to ${enableBackgroundUIValue}`, async ({
mount,
page,
}) => {
Expand All @@ -887,9 +887,9 @@ test.describe("Accessibility tests for playwright mock components and storybook
const backgroundUILocatorElement = backgroundUILocator(page);

if (enableBackgroundUIValue) {
await expect(backgroundUILocatorElement).toBeVisible();
} else {
await expect(backgroundUILocatorElement).not.toBeVisible();
} else {
await expect(backgroundUILocatorElement).toBeVisible();
}
});
});

0 comments on commit 46d0ad8

Please sign in to comment.