diff --git a/tests/playwright-test/basic.spec.ts b/tests/playwright-test/basic.spec.ts index 337b007c22..ce6825c559 100644 --- a/tests/playwright-test/basic.spec.ts +++ b/tests/playwright-test/basic.spec.ts @@ -588,25 +588,6 @@ test('should support describe.fixme', async ({ runInlineTest }) => { expect(result.output).toContain('heytest4'); }); -test('should not allow mixing test types', async ({ runInlineTest }) => { - const result = await runInlineTest({ - 'mixed.spec.ts': ` - import { test } from '@playwright/test'; - - export const test2 = test.extend({ - value: 42, - }); - - test.describe("test1 suite", () => { - test2("test 2", async () => {}); - }); - ` - }); - expect(result.exitCode).toBe(1); - expect(result.output).toContain(`Can't call test() inside a describe() suite of a different test type.`); - expect(result.output).toContain('> 9 | test2('); -}); - test('should fail when test.fail.only passes unexpectedly', async ({ runInlineTest }) => { const result = await runInlineTest({ 'fail-only-pass.spec.ts': `