Web Dev Solutions

Catalin Mititiuc

From 23967fe2f5ae9fb6d6c8a2cbc29845531f7acece Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Wed, 17 Apr 2024 22:26:53 -0700 Subject: Integration test running with test server --- README.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 394ed06..1437308 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,10 @@ You need chrome and chromedriver installed. The Dockerfile builds an image that TODO add firefox and geckodriver +The container can access the outside without setting a port or a network. The network or port is only necessary when wanting to connect the host machine to the docker container. You can run a test that spawns a test server and uses the webdriver to load the page like this: + + docker run --rm -it -v $PWD:/usr/src/app btroops npm run test:integ + ## Rough way to save the SVG map generated by JavaScript client-side const XMLS = new XMLSerializer(); -- cgit v1.2.3