Last active
November 22, 2023 09:01
-
-
Save stevgouws/a5283337c4ecbf8de3f40d589c52f986 to your computer and use it in GitHub Desktop.
Playwright parallelisation visualisation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
}) | |
}) | |
}) | |
}) |
Author
stevgouws
commented
Nov 22, 2023
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment