full course wip e2e

This commit is contained in:
Andreani Jean
2023-09-12 10:19:41 +02:00
parent 87da6714a2
commit a3bec701ea
12 changed files with 8 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ services:
API_FORCE_AUTH_ON_UPLOAD: 'true'
OAUTH_CLIENT_ID: geovisio
OAUTH_CLIENT_SECRET: what_a_secret
OAUTH_OIDC_URL: http://keycloak.localtest.me:8182/realms/geovisio
OAUTH_OIDC_URL: http://keycloak.localtest.me:8183/realms/geovisio
OAUTH_PROVIDER: oidc
FLASK_SECRET_KEY: a_very_secret_key_never_to_be_used_in_production
FLASK_SESSION_COOKIE_DOMAIN: localtest.me
@@ -56,11 +56,11 @@ services:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: password
KEYCLOAK_FRONTEND_URL: http://geovisio-api:5000/api/auth/login
KC_HTTP_PORT: 8182
KC_HTTP_PORT: 8183
ports:
- '8182:8182'
- '8183:8183'
healthcheck:
test: curl --fail http://localhost:8182/realms/geovisio
test: curl --fail http://localhost:8183/realms/geovisio
timeout: 5s
interval: 2s
retries: 20

View File

@@ -7,7 +7,7 @@ services:
working_dir: /src
command: >
sh -c "yarn install
&& echo "VITE_API_URL=http://api.geovisio.localtest.me:5000" > .env
&& echo "VITE_API_URL=http://api.geovisio.localtest.me:5123" > .env
&& echo "VITE_ENV=dev" >> .env
&& yarn start"
environment:
@@ -28,6 +28,7 @@ services:
working_dir: /src
environment:
- CYPRESS_baseUrl=http://web:5173
- CYPRESS_api_url=http://api.geovisio.localtest.me:5123
command: sleep 2 && yarn add --dev cypress && ./node_modules/.bin/cypress install && yarn test:e2e
depends_on:
web:

View File

@@ -1,5 +1,5 @@
{
"textLinkAbout": "À propos",
"textLinkUpload": "Contribuer",
"textLinkLogin": "Connexion"
"textLinkLogin": "Sign In"
}

View File

@@ -1,5 +1,5 @@
{
"textLinkLogin": "Connexion",
"textLinkLogin": "Sign In",
"textLinkUpload": "Contribuer",
"textButtonUpload": "Déposez des photos dans la zone ou"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB