In this example I have 4 tests in the same spec file, and I want 2 of them to be executed in serial mode and the other 2 to be executed in parallel.
// a,b - to be executed in parallel mode
test("a", async ({}) => console.log("a"));
test("b", async ({}) => console.log("b"));
// c,d - to be executed in serial mode
test("c", async ({}) => console.log("c"));
test("d", async ({}) => console.log("d"));
In my playwright.config
file I have the fullyParallel: true
setup.
In Playwright docs there is an example of excluding an entire spec file from parallelism by adding this line to the spec file:
test.describe.configure({ mode: 'parallel' });
Is there any way to do that in the same file?