webui: save test output on ci runs
diff --git a/loop/webui/playwright-ct.config.ts b/loop/webui/playwright-ct.config.ts
index 0dbaa1e..0acbc5e 100644
--- a/loop/webui/playwright-ct.config.ts
+++ b/loop/webui/playwright-ct.config.ts
@@ -1,12 +1,12 @@
-import { defineConfig, devices } from '@sand4rt/experimental-ct-web';
+import { defineConfig, devices } from "@sand4rt/experimental-ct-web";
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
- testDir: './src',
+ testDir: "./src",
/* The base directory, relative to the config file, for snapshot files created with toMatchSnapshot and toHaveScreenshot. */
- snapshotDir: './__snapshots__',
+ snapshotDir: "./__snapshots__",
/* Maximum time one test can run for. */
timeout: 10 * 1000,
/* Run tests in files in parallel */
@@ -18,11 +18,11 @@
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
- reporter: process.env.CI ? 'dot' : 'list',
+ reporter: [["html", { open: process.env.CI ? "never" : "on-failure" }]],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
- trace: 'on-first-retry',
+ trace: "on-first-retry",
/* Port to use for Playwright component endpoint. */
ctPort: 3100,
@@ -31,8 +31,8 @@
/* Configure projects for major browsers */
projects: [
{
- name: 'chromium',
- use: { ...devices['Desktop Chrome'] },
+ name: "chromium",
+ use: { ...devices["Desktop Chrome"] },
},
// {
// name: 'firefox',