diff --git a/.changeset/bright-ants-obey.md b/.changeset/bright-ants-obey.md new file mode 100644 index 00000000000..2a4bc75b2e5 --- /dev/null +++ b/.changeset/bright-ants-obey.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": patch +--- + +Login via API in order to setup playwright tests is working in serial mode diff --git a/playwright/tests/auth.setup.ts b/playwright/tests/auth.setup.ts index 6bcc75d7649..c1166e1d4f3 100644 --- a/playwright/tests/auth.setup.ts +++ b/playwright/tests/auth.setup.ts @@ -4,6 +4,8 @@ import fs from 'fs'; import path from 'path'; import { USER_PERMISSION, UserPermissionType, permissions } from "@data/userPermissions"; +setup.describe.configure({ mode: 'serial' }); + const authenticateAndSaveState = async (request: APIRequestContext, email: string, password: string, filePath: string) => { const basicApiService = new BasicApiService(request); @@ -11,6 +13,7 @@ const authenticateAndSaveState = async (request: APIRequestContext, email: strin const loginJsonInfo = await request.storageState(); + loginJsonInfo.origins.push({ origin: process.env.BASE_URL!, localStorage: [