'use strict';
import { defineConfig, devices } from 'playwright/test';
import { getDotenvConfig } from '../../../../fd-toolbox/infra/env-config.js';
import { isCi } from '../../../../fd-toolbox/lib/environments.js';
import { folders } from '../../../../base-repo/app-constants/project-paths.js';
import { npmCommands } from '../../../../infra/ci/constants/npm-commands.js';
import { playwright } from '../../../../base-repo/constants/playwright.js';
import { ensurePathSeparatorAtTheEnd } from '../../../../fd-toolbox/paths/ensure.js';

getDotenvConfig();const playwrightConfig=defineConfig({'globalTimeout':0x493e0,'timeout':0xea60,'testDir':ensurePathSeparatorAtTheEnd(folders['test']),'fullyParallel':!![],'snapshotDir':folders['test']+'/ui-tests/snapshots','forbidOnly':isCi(),'globalSetup':folders['test']+'/global-setup.ts','globalTeardown':folders['test']+'/global-teardown.ts','retries':isCi()?0x1a70+-0x2267*0x1+0x7f9*0x1:0x57+0x27*-0x83+0x9*0x22e,'workers':isCi()?-0x312*-0x4+0x20e0+-0x5*0x904:void(0x1*0x1c07+0x83*0x8+-0x201f*0x1),'reporter':playwright['reporter'],'use':{'baseURL':playwright['baseUrl'],'trace':playwright['trace']},'projects':[{'name':playwright['projectName'],'use':{...devices[playwright['projectDevice']]}}],'webServer':{'command':isCi()?'next\x20start':npmCommands['start'],'url':playwright['baseUrl'],'reuseExistingServer':!![],'timeout':0x1d4c0,'env':{'NODE_ENV':folders['test']}}});

export { playwrightConfig };
