-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'adminV2' into fix-refresh-button-also-for-user
- Loading branch information
Showing
20 changed files
with
78 additions
and
5 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
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
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,13 @@ | ||
FROM node:22-bookworm-slim | ||
|
||
RUN npx -y [email protected] install --with-deps | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json ./ | ||
COPY yarn.lock ./ | ||
|
||
RUN yarn install | ||
|
||
COPY . . | ||
|
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,36 @@ | ||
# Running Playwright Tests | ||
|
||
> **Note:** We run visual tests inside docker container because we need to have screenshots from linux | ||
## Introduction | ||
|
||
This guide explains how to run visual tests in Playwright using npm scripts. The scripts we will cover are: | ||
|
||
- `test:visual`: runs visual tests. | ||
- `test:visual:update`: updates existing snapshots. | ||
|
||
## Setting Up the Environment | ||
|
||
Ensure you have docker | ||
|
||
## Docker files | ||
|
||
``` | ||
/app | ||
├── /playwright | ||
│ ├── Dockerfile | ||
│ └── docker-compose.yml | ||
└── ... | ||
``` | ||
|
||
## Run tests | ||
|
||
``` | ||
yarn tests:visual | ||
``` | ||
|
||
## Update image snapshots | ||
|
||
``` | ||
yarn tests:visual:update | ||
``` |
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,20 @@ | ||
services: | ||
playwright-tests: | ||
build: | ||
context: ./.. | ||
dockerfile: playwright/Dockerfile | ||
volumes: | ||
- ../src/__tests__/visual/__screenshoots__:/app/src/__tests__/visual/__screenshoots__ | ||
- ../playwright-report:/app/playwright-report | ||
- ../test-results:/app/test-results | ||
command: npx playwright test --reporter=html | ||
environment: | ||
CI: false | ||
|
||
playwright-update-tests: | ||
build: | ||
context: ./.. | ||
dockerfile: playwright/Dockerfile | ||
volumes: | ||
- ../src/__tests__/visual/__screenshoots__:/app/src/__tests__/visual/__screenshoots__ | ||
command: npx playwright test --update-snapshots |
Binary file added
BIN
+224 KB
...screenshoots__/login-page-login-form/linux/login-page-login-form-1-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+308 KB
..._screenshoots__/login-page-login-form/linux/login-page-login-form-1-firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+227 KB
...__screenshoots__/login-page-login-form/linux/login-page-login-form-1-webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+225 KB
...alid-credentials/linux/login-page-login-with-invalid-credentials-1-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+309 KB
...valid-credentials/linux/login-page-login-with-invalid-credentials-1-firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+228 KB
...nvalid-credentials/linux/login-page-login-with-invalid-credentials-1-webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+84.2 KB
...age-xpubs-table-with-data/linux/xpubs-page-xpubs-table-with-data-1-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+109 KB
...page-xpubs-table-with-data/linux/xpubs-page-xpubs-table-with-data-1-firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+67.1 KB
...-page-xpubs-table-with-data/linux/xpubs-page-xpubs-table-with-data-1-webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-224 KB
...l/login-page/__screenshoots__/login-page-login-form/login-page-login-form-1.png
Binary file not shown.
Binary file removed
BIN
-225 KB
...-login-with-invalid-credentials/login-page-login-with-invalid-credentials-1.png
Binary file not shown.
Binary file removed
BIN
-78.8 KB
...hoots__/xpubs-page-xpubs-table-with-data/xpubs-page-xpubs-table-with-data-1.png
Binary file not shown.
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