generated from digitalservicebund/remix-application-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor ci test config and add devices
- Use specific ci config files - add mobile and tablet devices to default test config
- Loading branch information
Showing
6 changed files
with
94 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { PlaywrightTestConfig } from "@playwright/test"; | ||
import dotenv from "dotenv"; | ||
import path from "path"; | ||
import { fileURLToPath } from "url"; | ||
import { projectsCi } from "../../../playwright.config-base"; | ||
import configDefault from "./playwright.config"; | ||
|
||
// Get the directory name of the current module | ||
const __dirname = path.dirname(fileURLToPath(import.meta.url)); | ||
dotenv.config({ path: path.resolve(__dirname, "../", ".env.test") }); | ||
|
||
const config: PlaywrightTestConfig = { | ||
...configDefault, | ||
projects: projectsCi, | ||
}; | ||
|
||
export default config; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/tool-finder/tests/playwright/playwright-ci.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { PlaywrightTestConfig } from "@playwright/test"; | ||
import dotenv from "dotenv"; | ||
import path from "path"; | ||
import { fileURLToPath } from "url"; | ||
import { projectsCi } from "../../../../playwright.config-base"; | ||
import configDefault from "./playwright.config"; | ||
|
||
// Get the directory name of the current module | ||
const __dirname = path.dirname(fileURLToPath(import.meta.url)); | ||
dotenv.config({ path: path.resolve(__dirname, "../", ".env.test") }); | ||
|
||
const config: PlaywrightTestConfig = { | ||
...configDefault, | ||
projects: projectsCi, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters