Skip to content

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

docs(test-parameterize): fixed snippet typo (#10276)

Max Schmittd97fe4e2afcc
diff --git a/docs/src/test-parameterize-js.md b/docs/src/test-parameterize-js.md
index 340e02e2e8..1ca59a7357 100644
--- a/docs/src/test-parameterize-js.md
+++ b/docs/src/test-parameterize-js.md
@@ -12,7 +12,7 @@ You can either parameterize tests on a test level or on a project level.
```js js-flavor=js
// example.spec.js
const people = ['Alice', 'Bob'];
-for (const name in people) {
+for (const name of people) {
test(`testing with ${name}`, async () => {
// ...
});
@@ -23,7 +23,7 @@ for (const name in people) {
```js js-flavor=ts
// example.spec.ts
const people = ['Alice', 'Bob'];
-for (const name in people) {
+for (const name of people) {
test(`testing with ${name}`, async () => {
// ...
});