From 37af9ce3cf6ce40d35d8fd589ade643dba4e14d5 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Tue, 8 Jun 2021 13:10:15 -0700 Subject: [PATCH] test(playwright-test): fix fixtures test (#6967) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤷‍♂️ --- tests/playwright-test/fixtures.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/playwright-test/fixtures.spec.ts b/tests/playwright-test/fixtures.spec.ts index f2b16b6061..f45e8193e8 100644 --- a/tests/playwright-test/fixtures.spec.ts +++ b/tests/playwright-test/fixtures.spec.ts @@ -529,7 +529,7 @@ test('should create a new worker for worker fixtures', async ({ runInlineTest }) 'a.test.ts': ` const { test } = pwt; test('base test', async ({}, testInfo) => { - expect(testInfo.workerIndex).toBe(1); + expect(testInfo.workerIndex).toBe(0); }); const test2 = test.extend({ @@ -539,7 +539,7 @@ test('should create a new worker for worker fixtures', async ({ runInlineTest }) }, { scope: 'worker' }], }); test2('a test', async ({ foo }, testInfo) => { - expect(testInfo.workerIndex).toBe(0); + expect(testInfo.workerIndex).toBe(1); }); `, 'b.test.ts': ` @@ -551,7 +551,7 @@ test('should create a new worker for worker fixtures', async ({ runInlineTest }) }, }); test2('b test', async ({ bar }, testInfo) => { - expect(testInfo.workerIndex).toBe(1); + expect(testInfo.workerIndex).toBe(0); }); `, }, { workers: 1 });