refactor: playwright and tests in one folder
This commit is contained in:
@@ -4,7 +4,7 @@ import { defineConfig, devices } from "@playwright/test";
|
||||
* @see https://playwright.dev/docs/test-configuration
|
||||
*/
|
||||
export default defineConfig({
|
||||
testDir: "./tests",
|
||||
testDir: "./playwright/tests",
|
||||
/* Run tests in files in parallel */
|
||||
fullyParallel: true,
|
||||
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
||||
@@ -14,7 +14,11 @@ export default defineConfig({
|
||||
/* Opt out of parallel tests on CI. */
|
||||
workers: process.env.CI ? 1 : undefined,
|
||||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
||||
reporter: "html",
|
||||
// Write HTML reports to a single folder under ./playwright/report
|
||||
reporter: [["html", { outputFolder: "playwright/report" }]],
|
||||
|
||||
/* Where to put test artifacts (screenshots, videos, traces, etc.) */
|
||||
outputDir: "playwright/test-results",
|
||||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||
use: {
|
||||
/* Base URL to use in actions like `await page.goto('/')`. */
|
||||
|
||||
Reference in New Issue
Block a user