Skip to content

Playwright improvements#3495

Merged
hassy merged 2 commits intomainfrom
feat/playwright-improvements
Mar 6, 2025
Merged

Playwright improvements#3495
hassy merged 2 commits intomainfrom
feat/playwright-improvements

Conversation

@hassy
Copy link
Member

@hassy hassy commented Mar 6, 2025

Description

  • Update a Playwright TypeScript example to show how to use a before hook
  • Disable worker threads for Playwright tests:
    • Fixes/avoids current issue of load tests written in TypeScript not respecting phases config. Because each worker re-imports the script, the original phase configuration is preserved, which leads to the load being multiplied rather than distrubuted.
    • There's no performance benefit to multiple threads in this case anyway because the actual work will happen in an external Chrome process

Pre-merge checklist

This is for use by the Artillery team. Please leave this in if you're contributing to Artillery.

  • Does this require an update to the docs? No
  • Does this require a changelog entry? Yes

@hassy hassy changed the title Feat/playwright improvements Playwright improvements Mar 6, 2025
@hassy hassy merged commit 9ea1688 into main Mar 6, 2025
42 checks passed
@hassy hassy deleted the feat/playwright-improvements branch March 6, 2025 22:18
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.

1 participant