Skip to content

Commit

Permalink
chore: revert inadvertent test change (#34459)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored Jan 23, 2025
1 parent bfb7999 commit f117684
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/page/page-check.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@
import { test as it, expect } from './pageTest';

it('should check the box @smoke', async ({ page }) => {
await page.setContent(`<div class='middle selected row' id='component'></div>`);
const locator = page.locator('#component');
await expect(locator).toHaveClass(/(^|\s)selected(\s|$)/);
await expect(locator).toHaveClass('middle selected row');
await page.setContent(`<input id='checkbox' type='checkbox'></input>`);
await page.check('input');
expect(await page.evaluate(() => window['checkbox'].checked)).toBe(true);
});

it('should not check the checked box', async ({ page }) => {
Expand Down

0 comments on commit f117684

Please sign in to comment.