Skip to content

Commit 994b6e8

Browse files
committed
update test expecations
1 parent d773252 commit 994b6e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Playwright.TestingHarnessTest/tests/xunit.v3/basic.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ test('should be able to parse LaunchOptions.Args from runsettings', async ({ run
343343
expect(result.stdout).toContain("User-Agent: hello")
344344
});
345345

346-
test('should be able to override context options', async ({ runTest }) => {
346+
test('should be able to override context options', async ({ runTest, server }) => {
347347
const result = await runTest({
348348
'ExampleTests.cs': `
349349
using System;
@@ -370,7 +370,7 @@ test('should be able to override context options', async ({ runTest }) => {
370370
371371
Assert.Equal("Foobar", await Page.EvaluateAsync<string>("() => navigator.userAgent"));
372372
373-
var response = await Page.GotoAsync("https://example.com/");
373+
var response = await Page.GotoAsync("${server.EMPTY_PAGE}");
374374
Assert.Equal("KekStarValue", await response.Request.HeaderValueAsync("Kekstar"));
375375
}
376376
@@ -459,7 +459,7 @@ test.describe('Expect() timeout', () => {
459459
expect(result.passed).toBe(0);
460460
expect(result.failed).toBe(1);
461461
expect(result.total).toBe(1);
462-
expect(result.rawStdout).toContain("LocatorAssertions.ToHaveTextAsync with timeout 5000ms")
462+
expect(result.rawStdout).toContain("Expect \"ToHaveTextAsync\" with timeout 5000ms")
463463
});
464464

465465
test('should be able to override it via each Expect() call', async ({ runTest }) => {
@@ -488,7 +488,7 @@ test.describe('Expect() timeout', () => {
488488
expect(result.passed).toBe(0);
489489
expect(result.failed).toBe(1);
490490
expect(result.total).toBe(1);
491-
expect(result.rawStdout).toContain("LocatorAssertions.ToHaveTextAsync with timeout 100ms")
491+
expect(result.rawStdout).toContain("Expect \"ToHaveTextAsync\" with timeout 100ms")
492492
});
493493

494494
test('should be able to override it via the global config', async ({ runTest }) => {
@@ -525,7 +525,7 @@ test.describe('Expect() timeout', () => {
525525
expect(result.passed).toBe(0);
526526
expect(result.failed).toBe(1);
527527
expect(result.total).toBe(1);
528-
expect(result.rawStdout).toContain("LocatorAssertions.ToHaveTextAsync with timeout 123ms")
528+
expect(result.rawStdout).toContain("Expect \"ToHaveTextAsync\" with timeout 123ms")
529529
});
530530
});
531531

0 commit comments

Comments
 (0)