You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constshardDetails=shard ? `, shard ${shard.current+1} of ${shard.total}` : '';
Code snippet to reproduce your bug
// In playwright.config.ts:
// This runs shard 2/2. This is a different result than passing `--shard=1/2`.
export default {
shard: {
current: 1,
total: 2,
},
};
// This fails with error: `Error: playwright.config.ts: config.shard.current must be a positive number, not greater than config.shard.total`export default {
shard: {
current: 0,
total: 2,
},
};
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
Playwright version
1.13.0
Operating system
MacOS
What browsers are you seeing the problem on?
Chromium
Other information
Using the playwright test runner
What happened? / Describe the bug
When setting the current shard through playwright.config.ts, the current shard becomes config.shard.current + 1.
This seems to be where the bug occurs:
playwright/src/test/runner.ts
Line 255 in 483b7d6
Code snippet to reproduce your bug
Relevant log output
No response
The text was updated successfully, but these errors were encountered: