|
4 | 4 | To build the image run:
|
5 | 5 |
|
6 | 6 | ```
|
7 |
| -docker build -t lowcoder-tests -f docker/Dockerfile docker/ --no-cache |
| 7 | +docker build -tlowcoderorg/lowcoder-tests -f docker/Dockerfile docker/ --no-cache |
8 | 8 | ```
|
9 | 9 |
|
10 | 10 | If you need to change the default playwright version (currently v1.45) add build argument to the build:
|
11 | 11 |
|
12 | 12 | ```
|
13 |
| -docker build -t lowcoder-tests --build-arg=PLAYWRIGHT_VERSION=1.40 -f docker/Dockerfile docker/ --no-cache |
| 13 | +docker build -tlowcoderorg/lowcoder-tests --build-arg=PLAYWRIGHT_VERSION=1.40 -f docker/Dockerfile docker/ --no-cache |
14 | 14 | ```
|
15 | 15 |
|
16 | 16 | ###Running tests
|
17 | 17 |
|
18 | 18 | **Using --ipc=host is recommended when using Chrome (Docker docs). Chrome can run out of memory without this flag.**
|
19 | 19 |
|
20 | 20 | ```
|
21 |
| -docker run -it --rm --ipc=host -v ./playwright:/app lowcoder-tests |
| 21 | +docker run -it --rm --ipc=host -v ./playwright:/applowcoderorg/lowcoder-tests |
22 | 22 | ```
|
23 | 23 |
|
24 | 24 | To configure to which lowcoder instance playwright is connecting, set`LOWCODER_BASE_URL` in`playwright/.env` file.
|
25 |
| -Please be aware that when run with docker, localhost is translated to the actual container, so set IP address of your host if lowcoder is running on your host. |
| 25 | +Please be aware that when run with docker, localhost is translated to the actual container, so set IP address of your host if lowcoder is running on your host. |
| 26 | +By default when run with docker, it connects to your host on port 3000. |
26 | 27 |
|
27 | 28 | Once tests are finished, you can find html reposrts and videos in`playwright/report` folder.
|
28 | 29 |
|
|