diff --git a/dtc-playwright-plugin/src/browser.spec.ts b/dtc-playwright-plugin/src/browser.spec.ts index debef70..41d5299 100644 --- a/dtc-playwright-plugin/src/browser.spec.ts +++ b/dtc-playwright-plugin/src/browser.spec.ts @@ -1,11 +1,11 @@ import {executeTestCase, resolveConfig, loadTestCases} from '@cgauge/dtc' import {test} from '@playwright/test' -const path = process.env.DTC_PLAYWRIGHT_PATH +const projectPath = process.cwd() +const path = process.env.DTC_PLAYWRIGHT_PATH?.replace(projectPath, ''); const config = String(process.env.DTC_PLAYWRIGHT_CONFIG) const {loader, plugins, testRegex} = await resolveConfig(config) -const projectPath = process.cwd() const testCaseExecutions = await loadTestCases(projectPath, loader, testRegex, path)