chore: revert inadvertent test change (#34459)
This commit is contained in:
parent
bfb79990da
commit
f11768436a
|
|
@ -18,10 +18,9 @@
|
||||||
import { test as it, expect } from './pageTest';
|
import { test as it, expect } from './pageTest';
|
||||||
|
|
||||||
it('should check the box @smoke', async ({ page }) => {
|
it('should check the box @smoke', async ({ page }) => {
|
||||||
await page.setContent(`<div class='middle selected row' id='component'></div>`);
|
await page.setContent(`<input id='checkbox' type='checkbox'></input>`);
|
||||||
const locator = page.locator('#component');
|
await page.check('input');
|
||||||
await expect(locator).toHaveClass(/(^|\s)selected(\s|$)/);
|
expect(await page.evaluate(() => window['checkbox'].checked)).toBe(true);
|
||||||
await expect(locator).toHaveClass('middle selected row');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not check the checked box', async ({ page }) => {
|
it('should not check the checked box', async ({ page }) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue