Skip to content

Conversation

@mxschmitt
Copy link
Contributor

@mxschmitt mxschmitt requested a review from Copilot July 30, 2025 14:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR replaces hardcoded external dependencies on example.com with a local test server to make integration tests more reliable and avoid network failures. The changes implement a SimpleServer class and update test files to use the local server instead of external URLs.

Key changes:

  • Created a SimpleServer fixture that serves a simple HTML page locally
  • Replaced all example.com URLs with server.EMPTY_PAGE in test cases
  • Updated test function signatures to include the new server fixture

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/Playwright.TestingHarnessTest/tests/baseTest.ts Adds SimpleServer class and server fixture for local testing
src/Playwright.TestingHarnessTest/tests/xunit/basic.spec.ts Updates proxy and context option tests to use local server
src/Playwright.TestingHarnessTest/tests/nunit/basic.spec.ts Updates proxy and context option tests to use local server
src/Playwright.TestingHarnessTest/tests/mstest/basic.spec.ts Updates proxy and context option tests to use local server

Copy link
Member

@Skn0tt Skn0tt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're testing MSTest with Playwright Test? 🤯

@mxschmitt mxschmitt merged commit 0ef084e into main Jul 30, 2025
16 checks passed
@mxschmitt mxschmitt deleted the test/do-not-depend-on-example.com branch July 30, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants