Skip to content

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

chore(runner): remove unnecessary traversal (#17415)

Yury Semikhatskyee83694372e2
diff --git a/packages/playwright-test/src/fixtures.ts b/packages/playwright-test/src/fixtures.ts
index 32f4410d8b..2aa919ed5a 100644
--- a/packages/playwright-test/src/fixtures.ts
+++ b/packages/playwright-test/src/fixtures.ts
@@ -282,15 +282,10 @@ export class FixturePool {
}
validateFunction(fn: Function, prefix: string, location: Location) {
- const visit = (registration: FixtureRegistration) => {
- for (const name of registration.deps)
- visit(this.resolveDependency(registration, name)!);
- };
for (const name of fixtureParameterNames(fn, location)) {
const registration = this.registrations.get(name);
if (!registration)
throw errorWithLocations(`${prefix} has unknown parameter "${name}".`, { location, name: prefix, quoted: false });
- visit(registration);
}
}