Skip to content

Commit f117684

Browse files
authored
chore: revert inadvertent test change (#34459)
1 parent bfb7999 commit f117684

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/page/page-check.spec.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
import { test as it, expect } from './pageTest';
1919

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

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

0 commit comments

Comments
 (0)