Skip to content

Instantly share code, notes, and snippets.

@stevgouws
Last active November 22, 2023 09:01
Show Gist options
  • Save stevgouws/a5283337c4ecbf8de3f40d589c52f986 to your computer and use it in GitHub Desktop.
Save stevgouws/a5283337c4ecbf8de3f40d589c52f986 to your computer and use it in GitHub Desktop.
Playwright parallelisation visualisation
const { test, expect } = require('@playwright/test')
test.describe.parallel('Parallel tests', () => {
test('Parallel 1', async () => {
expect(true).toBe(true)
})
test('Parallel 2', async () => {
expect(true).toBe(true)
})
test.describe('Nested without override, inherits from parent scope', () => {
test('Parallel 3', async () => {
expect(true).toBe(true)
})
test('Parallel 4', async () => {
expect(true).toBe(true)
})
test.describe.serial('Nested with SERIAL override, overwrites parent scope', () => {
test('Serial 1', async () => {
expect(true).toBe(true)
})
test('Serial 2', async () => {
expect(true).toBe(true)
})
})
})
})
@stevgouws
Copy link
Author

stevgouws commented Nov 22, 2023

Playwright Paralellisation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment