mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-17 16:21:55 +03:00
0961c48313
Strong-require repro steps. Signed-off-by: Pavel Feldman <pavel.feldman@gmail.com>
1.8 KiB
1.8 KiB
name | about | title | labels | assignees |
---|---|---|---|---|
Bug Report | Something doesn't work like it should? Tell us! | [BUG] |
System info
- Playwright Version: [v1.XX]
- Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]
- Browser: [All, Chromium, Firefox, WebKit]
- Other info:
Source code
- I provided exact source code that allows reproducing the issue locally.
Link to the GitHub repository with the repro
[https://github.com/your_profile/playwright_issue_title]
or
Config file
// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], },
},
});
Test file (self-contained)
it('should check the box using setChecked', async ({ page }) => {
await page.setContent(`<input id='checkbox' type='checkbox'></input>`);
await page.getByRole('checkbox').check();
await expect(page.getByRole('checkbox')).toBeChecked();
});
Steps
- [Run the test]
- [...]
Expected
[Describe expected behavior]
Actual
[Describe actual behavior]