Skip to content

Commit 36670b7

Browse files
committed
imma go with video now
1 parent 2c6e45d commit 36670b7

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

assets/tests/admin/admin-form.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
onlyImageTextListJson,
1111
slideJson,
1212
slidesJson1,
13-
slidesListJson,
1413
tokenAdminJson,
1514
} from "./data-fixtures.js";
1615

@@ -291,7 +290,7 @@ test.describe("Admin slide values depending on other values", () => {
291290
slideJson,
292291
);
293292
await fulfillEmptyRoutes(page, ["**/playlists*", "**/themes*"]);
294-
await loginTest(page, slidesListJson);
293+
await loginTest(page, slidesJson1);
295294

296295
await Promise.all([
297296
page.waitForURL("**/slide/edit/*"),

playwright.config.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { defineConfig, devices } from '@playwright/test';
1+
import { defineConfig, devices } from "@playwright/test";
22

33
/**
44
* Read environment variables from file.
55
* https://github.com/motdotla/dotenv
66
*/
77
// require('dotenv').config();
88

9-
const BASE_URL = process.env.BASE_URL ?? 'http://nginx:8080';
9+
const BASE_URL = process.env.BASE_URL ?? "http://nginx:8080";
1010

1111
/**
1212
* See https://playwright.dev/docs/test-configuration.
1313
*/
1414
export default defineConfig({
15-
testDir: './assets/tests',
15+
testDir: "./assets/tests",
1616
/* Run tests in files in parallel */
1717
fullyParallel: true,
1818
/* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -23,25 +23,25 @@ export default defineConfig({
2323
workers: process.env.CI ? 1 : undefined,
2424
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
2525
// Open never added to avoid the CI pipeline to get stuck in a html-reporter-mode.
26-
reporter: [['html', { open: 'never' }]],
26+
reporter: [["html", { open: "never" }]],
2727
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2828
use: {
2929
/* Base URL to use in actions like `await page.goto('/')`. */
3030
// Docker baseurl
3131
baseURL: BASE_URL,
3232
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
33-
trace: 'on-first-retry',
34-
35-
screenshot: 'only-on-failure'
33+
trace: "on-first-retry",
34+
video: "retain-on-failure",
35+
screenshot: "only-on-failure",
3636
},
3737

3838
/* Configure projects for major browsers */
3939
projects: [
4040
{
41-
name: 'chromium',
42-
use: { ...devices['Desktop Chrome'] },
41+
name: "chromium",
42+
use: { ...devices["Desktop Chrome"] },
4343
},
44-
/*
44+
/*
4545
{
4646
name: 'firefox',
4747
use: { ...devices['Desktop Firefox'] },

0 commit comments

Comments
 (0)