Skip to content

chore: unit test for waitForRequest#4944

Merged
aaltat merged 1 commit into
MarketSquare:mainfrom
aaltat:more_unit_tests
Jun 5, 2026
Merged

chore: unit test for waitForRequest#4944
aaltat merged 1 commit into
MarketSquare:mainfrom
aaltat:more_unit_tests

Conversation

@aaltat
Copy link
Copy Markdown
Member

@aaltat aaltat commented Jun 5, 2026

No description provided.

Copilot AI review requested due to automatic review settings June 5, 2026 19:19
Copy link
Copy Markdown
Contributor

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 adds a Jest unit test suite for the Node Playwright wrapper’s waitForRequest helper, validating how request metadata is serialized into the JSON response and how logging behaves under different postData/header conditions.

Changes:

  • Introduces node/playwright-wrapper/__tests__/network.test.ts with coverage for JSON vs raw postData, null postData, header serialization, and log message contents.
  • Adds negative-path tests that assert failures when request headers cannot be JSON-stringified.

Comment thread node/playwright-wrapper/__tests__/network.test.ts Outdated
Comment thread node/playwright-wrapper/__tests__/network.test.ts Outdated
@aaltat aaltat force-pushed the more_unit_tests branch from 37e95f4 to 9898887 Compare June 5, 2026 19:34
@aaltat aaltat merged commit cbf0941 into MarketSquare:main Jun 5, 2026
23 checks passed
@aaltat aaltat deleted the more_unit_tests branch June 5, 2026 19:49
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.

2 participants