Skip to content

Instantly share code, notes, and snippets.

@zyulyaev
zyulyaev / @playwright+test+1.22.2.patch
Created June 23, 2022 12:39
Playwright patch to run tests in random order
diff --git a/node_modules/@playwright/test/lib/runner.js b/node_modules/@playwright/test/lib/runner.js
index 58c10e5..8f67b93 100644
--- a/node_modules/@playwright/test/lib/runner.js
+++ b/node_modules/@playwright/test/lib/runner.js
@@ -349,7 +349,22 @@ class Runner {
const shard = config.shard;
if (shard) {
- const shardGroups = [];
+ const random = new MersenneTwister19937();