Skip to content

Commit

Permalink
Remove projectPath from filePath before loading testCases (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdala authored Dec 3, 2024
1 parent b75a64c commit 8f527e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dtc-playwright-plugin/src/browser.spec.ts
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit 8f527e6

Please sign in to comment.