Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/global-errors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test('should report duplicate test title', async ({ activate }) => {
await expect.poll(() => vscode.languages.getDiagnostics()).toEqual([
{
message: 'Error: duplicate test title \"one\", first declared in test.spec.ts:3',
range: { start: { line: 4, character: 10 }, end: { line: 5, character: 0 } },
range: { start: { line: 4, character: expect.any(Number) }, end: { line: 5, character: 0 } },
severity: 'Error',
source: 'playwright',
}
Expand Down
12 changes: 6 additions & 6 deletions tests/run-tests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ test('should produce output twice', async ({ activate }) => {
expect(testItems.length).toBe(1);

const testRun1 = await testController.run(testItems);
expect(testRun1.renderLog({ output: true })).toBe(`
expect(testRun1.renderLog({ output: true }).replace(/:3:\d+ ›/g, ':3 ›')).toBe(`
tests > test.spec.ts > one [2:0]
enqueued
started
Expand All @@ -1066,16 +1066,16 @@ test('should produce output twice', async ({ activate }) => {

Running 1 test using 1 worker

[1/1] tests${path.sep}test.spec.ts:3:11 › one
tests${path.sep}test.spec.ts:3:11 › one
[1/1] tests${path.sep}test.spec.ts:3 › one
tests${path.sep}test.spec.ts:3 › one
some output

1 passed (XXms)

`);

const testRun2 = await testController.run(testItems);
expect(testRun2.renderLog({ output: true })).toBe(`
expect(testRun2.renderLog({ output: true }).replace(/:3:\d+ ›/g, ':3 ›')).toBe(`
tests > test.spec.ts > one [2:0]
enqueued
enqueued
Expand All @@ -1085,8 +1085,8 @@ test('should produce output twice', async ({ activate }) => {

Running 1 test using 1 worker

[1/1] tests${path.sep}test.spec.ts:3:11 › one
tests${path.sep}test.spec.ts:3:11 › one
[1/1] tests${path.sep}test.spec.ts:3 › one
tests${path.sep}test.spec.ts:3 › one
some output

1 passed (XXms)
Expand Down
Loading