From c5a7e77f04d25dd07354d67b3d07e477362b1789 Mon Sep 17 00:00:00 2001 From: wancat Date: Thu, 22 Feb 2024 23:15:29 +0800 Subject: [PATCH] fix: testing base url. change cypress base image --- docker-compose.testing.yml | 2 +- tests/Dockerfile | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docker-compose.testing.yml b/docker-compose.testing.yml index 49c06a9..18f0f97 100644 --- a/docker-compose.testing.yml +++ b/docker-compose.testing.yml @@ -43,7 +43,7 @@ services: - /var/run/docker.sock:/var/run/docker.sock - ./logs:/app/logs environment: - - BASE_URL=http://localhost:5173 + - BASE_URL=http://app-test - MONGO_URL=mongodb://user:user-password@db-test:27017/odyssey-test - DOCKER_NETWORK=linux-odyssey-players - SECRET_KEY=b1d2e917-17b9-4fce-9055-082dee6ec5d6 # Only for testing diff --git a/tests/Dockerfile b/tests/Dockerfile index ae5c8e8..1dc0d4a 100644 --- a/tests/Dockerfile +++ b/tests/Dockerfile @@ -1,4 +1,4 @@ -FROM cypress/included:13.5.1 +FROM cypress/browsers WORKDIR /e2e COPY package.json yarn.lock ./ @@ -7,4 +7,6 @@ RUN yarn install COPY quests ./quests COPY tests ./tests -WORKDIR /e2e/tests \ No newline at end of file +WORKDIR /e2e/tests + +CMD [ "yarn", "test" ]