test: remove reverted test

This commit is contained in:
Pengoose 2024-10-10 12:22:59 +09:00 committed by pengoosedev
parent 4083d54ce7
commit e7ab8b24b8

View file

@ -588,25 +588,6 @@ test('should support describe.fixme', async ({ runInlineTest }) => {
expect(result.output).toContain('heytest4'); 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 }) => { test('should fail when test.fail.only passes unexpectedly', async ({ runInlineTest }) => {
const result = await runInlineTest({ const result = await runInlineTest({
'fail-only-pass.spec.ts': ` 'fail-only-pass.spec.ts': `