From 5ab925d82323179bc687c01065588372c7aca887 Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 19 Jul 2022 11:03:25 +0200 Subject: [PATCH] update both README file regarding using the hosts network for local testing --- e2e-tests/cypress/README.md | 4 +--- e2e-tests/playwright/README.md | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/e2e-tests/cypress/README.md b/e2e-tests/cypress/README.md index 69c1d7642..b1ddae514 100644 --- a/e2e-tests/cypress/README.md +++ b/e2e-tests/cypress/README.md @@ -16,11 +16,9 @@ to boot up the DEV system, before running the test. ## Execute the test ```bash -cd e2e-tests/cypress - # build a Docker image from the Dockerfile docker build -t gradido_e2e-tests-cypress . # run the Docker container and execute the given tests -docker run -it gradido_e2e-tests-cypress yarn run cypress-e2e-tests +docker run -it --network=host gradido_e2e-tests-cypress yarn run cypress-e2e-tests ``` diff --git a/e2e-tests/playwright/README.md b/e2e-tests/playwright/README.md index a5fb742ef..a3a2b34bb 100644 --- a/e2e-tests/playwright/README.md +++ b/e2e-tests/playwright/README.md @@ -20,5 +20,5 @@ to boot up the DEV system, before running the test. docker build -t gradido_e2e-tests-playwright . # run the Docker container and execute the given tests -docker run -it gradido_e2e-tests-playwright yarn playwright-e2e-tests +docker run -it --network=host gradido_e2e-tests-playwright yarn playwright-e2e-tests ```