Skip to content

Commit

Permalink
docs: add mandatory FRONT_END_URL value to READMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalinDe committed Dec 5, 2023
1 parent df1111e commit 0e6c079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ DATABASE_PASSWORD=XXX # choose any PostgreSQL password
DATABASE_HOST=db
DATABASE_PORT=5432
DB_PATH=dvoting # LMDB database path
FRONT_END_URL=http://127.0.0.1:3000
FRONT_END_URL=http://127.0.0.1:3000 # the automated frontend tests expect this value do not change it
BACKEND_HOST=backend
BACKEND_PORT=5000
SESSION_SECRET=XXX # choose any secret
Expand Down
5 changes: 2 additions & 3 deletions web/frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ You need to have the D-Voting application and DELA network running. You also nee
that the environment variables from the D-Voting application are set:

- `FRONT_END_URL` must be set to your locally running instance
- `REACT_APP_DEV_LOGIN` must be set to `true`

in the shell you'll be executing the tests in.

Expand All @@ -33,15 +32,15 @@ in the shell you'll be executing the tests in.
Run

```
FRONT_END_URL=<local instance URL> REACT_APP_DEV_LOGIN=true npx playwright test
FRONT_END_URL=http://127.0.0.1:3000 npx playwright test
```

to run the tests. This will open a window in your browser w/ the test results.

To run interactive tests, run

```
FRONT_END_URL=<local instance URL> REACT_APP_DEV_LOGIN=true npx playwright test --ui
FRONT_END_URL=http://127.0.0.1:3000 npx playwright test --ui
```

this will open an user interface where you can interactively run and evaluate tests.

0 comments on commit 0e6c079

Please sign in to comment.