Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: fix compilation error by using assertThat in checkboxes example (#38463)

Ran Meng5acb250562fc
diff --git a/docs/src/input.md b/docs/src/input.md
index 4f71c2be67..201bd8dcf1 100644
--- a/docs/src/input.md
+++ b/docs/src/input.md
@@ -101,7 +101,7 @@ await page.getByLabel('XL').check();
page.getByLabel("I agree to the terms above").check();
// Assert the checked state
-assertTrue(page.getByLabel("Subscribe to newsletter")).isChecked();
+assertThat(page.getByLabel("Subscribe to newsletter")).isChecked();
// Select the radio button
page.getByLabel("XL").check();