23.9.57 • Published 13 days ago

@zachwhelchel/actual-app-web v23.9.57

Weekly downloads
-
License
MIT
Repository
-
Last release
13 days ago

Actual on the web

E2E tests

E2E (end-to-end) tests use Playwright. Running them requires an Actual server to be running either locally or on a remote server.

Functional

Running against the local server:

# Start the development server
yarn start

# Run against the local server (localhost:3001)
yarn e2e

Running against a remote server:

E2E_START_URL=http://my-remote-server.com yarn e2e

Visual regression

Visual regression tests (also known as screenshot tests) check that the visual appearance of the product has not regressed. Each environment has slightly different colors, fonts etc. Mac differs from Windows which differs from Linux. In order to have a stable test environment for visual comparisons - you must use a standartised docker container. This ensures that the tests are always ran in a consistent environment.

Prerequisites:

  • Docker installed

Running against the local server

First start a dev instance:

HTTPS=true yarn start

Note the network IP address and port the dev instance is listening on.

Next, navigate to the root of your project folder, run the standartised docker container, and launch the visual regression tests from within it.

# Run docker container
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.41.1-jammy /bin/bash

    # If you receive an error such as "docker: invalid reference format", please instead use the following command:
    docker run --rm --network host -v ${pwd}:/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.41.1-jammy /bin/bash

# Run the VRT tests: important - they MUST be ran against a HTTPS server.  Use the ip and port noted earlier
E2E_START_URL=https://ip:port yarn vrt

    # To update snapshots, use the following command:
    E2E_START_URL=https://ip:port yarn vrt --update-snapshots

Running against a remote server

You can also run the tests against a remote server by passing the URL:

E2E_START_URL=https://my-remote-server.com yarn vrt
23.9.57

13 days ago

23.9.56

18 days ago

23.9.55

1 month ago

23.9.54

1 month ago

23.9.51

1 month ago

23.9.52

1 month ago

23.9.50

1 month ago

23.9.49

1 month ago

23.9.53

1 month ago

23.9.48

1 month ago

23.9.47

1 month ago

23.9.46

1 month ago

23.9.45

2 months ago

23.9.44

2 months ago

23.9.42

2 months ago

23.9.43

2 months ago

23.9.41

2 months ago

23.9.40

2 months ago

23.9.39

2 months ago

23.9.38

2 months ago

23.9.37

2 months ago

23.9.36

2 months ago

23.9.35

2 months ago

23.9.34

2 months ago

23.9.33

2 months ago

23.9.32

2 months ago

23.9.31

3 months ago

23.9.30

3 months ago

23.9.29

3 months ago

23.9.28

3 months ago

23.9.26

3 months ago

23.9.27

3 months ago

23.9.24

3 months ago

23.9.23

4 months ago

23.9.22

4 months ago

23.9.21

4 months ago

23.9.20

4 months ago

23.9.19

4 months ago

23.9.18

4 months ago

23.9.17

4 months ago

23.9.16

4 months ago

23.9.15

4 months ago

23.9.14

5 months ago

23.9.13

5 months ago

23.9.11

5 months ago

23.9.12

5 months ago

23.9.9

5 months ago

23.9.10

5 months ago

23.9.7

5 months ago

23.9.8

5 months ago

23.9.6

5 months ago

23.9.5

5 months ago

23.9.4

5 months ago

23.9.3

5 months ago

23.9.2

6 months ago

23.9.1

7 months ago

23.9.0

7 months ago