Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: revert inadvertent test change (#34459)
Yury Semikhatskyf11768436ae0
diff --git a/tests/page/page-check.spec.ts b/tests/page/page-check.spec.tsindex 42946ce555..01b00ddc55 100644--- a/tests/page/page-check.spec.ts+++ b/tests/page/page-check.spec.ts@@ -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 }) => {