code review
This commit is contained in:
5
.github/workflows/playwright.yml
vendored
5
.github/workflows/playwright.yml
vendored
@@ -11,9 +11,10 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: lts/*
|
cache: "yarn"
|
||||||
|
node-version-file: ".node-version"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install -g yarn && yarn
|
run: yarn install --frozen-lockfile
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
run: yarn playwright install --with-deps
|
run: yarn playwright install --with-deps
|
||||||
- name: Run backend components
|
- name: Run backend components
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ npx playwright codegen
|
|||||||
```
|
```
|
||||||
|
|
||||||
This will record your action and write the test code for you. Use the tool bar to test visibility, text content,
|
This will record your action and write the test code for you. Use the tool bar to test visibility, text content,
|
||||||
clicking..
|
clicking.
|
||||||
|
|
||||||
##### Investigate a failed test from the CI
|
##### Investigate a failed test from the CI
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
import { defineConfig, devices } from "@playwright/test";
|
/*
|
||||||
|
Copyright 2025 New Vector Ltd.
|
||||||
|
|
||||||
/**
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||||
* Read environment variables from file.
|
Please see LICENSE in the repository root for full details.
|
||||||
* https://github.com/motdotla/dotenv
|
*/
|
||||||
*/
|
|
||||||
// import dotenv from 'dotenv';
|
import { defineConfig, devices } from "@playwright/test";
|
||||||
// import path from 'path';
|
|
||||||
// dotenv.config({ path: path.resolve(__dirname, '.env') });
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* See https://playwright.dev/docs/test-configuration.
|
* See https://playwright.dev/docs/test-configuration.
|
||||||
|
|||||||
Reference in New Issue
Block a user