mirror of
https://github.com/hanzoai/react-drawer.git
synced 2026-10-30 18:23:24 +00:00
16 lines
490 B
TypeScript
16 lines
490 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto('/without-scaled-background');
|
|
});
|
|
|
|
test.describe('Without scaled background', () => {
|
|
test('should not scale background', async ({ page }) => {
|
|
await expect(page.locator('[react-drawer-wrapper]')).not.toHaveCSS('transform', '');
|
|
|
|
await page.getByTestId('trigger').click();
|
|
|
|
await expect(page.locator('[react-drawer-wrapper]')).not.toHaveCSS('transform', '');
|
|
});
|
|
});
|