diff --git a/tests/playwright-test/test-output-dir.spec.ts b/tests/playwright-test/test-output-dir.spec.ts index ccb8555b33..dcb349ba72 100644 --- a/tests/playwright-test/test-output-dir.spec.ts +++ b/tests/playwright-test/test-output-dir.spec.ts @@ -413,7 +413,7 @@ test('should have output dir based on rootDir (cwd)', async ({ runInlineTest }, `, }, {}, {}, { usesCustomOutputDir: true }); expect(result.exitCode).toBe(0); - expect(fs.existsSync(testInfo.outputPath('test-results', 'example-hello-world', 'hello'))); + expect(fs.existsSync(testInfo.outputPath('test-results', 'example-hello-world', 'foo.txt'))).toBe(true); });