Skip to content

Commit

Permalink
test: remove reverted test
Browse files Browse the repository at this point in the history
  • Loading branch information
pengooseDev committed Oct 10, 2024
1 parent dbaf553 commit 2141774
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/playwright-test/basic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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': `
Expand Down

0 comments on commit 2141774

Please sign in to comment.