diff --git a/cypress/docker-compose-geovisio.yml b/cypress/docker-compose-geovisio.yml index 057d00a..cace028 100644 --- a/cypress/docker-compose-geovisio.yml +++ b/cypress/docker-compose-geovisio.yml @@ -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 diff --git a/cypress/docker-compose-gitlab-override.yml b/cypress/docker-compose-gitlab-override.yml index 77c448d..f0dbf85 100644 --- a/cypress/docker-compose-gitlab-override.yml +++ b/cypress/docker-compose-gitlab-override.yml @@ -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: diff --git a/cypress/fixtures/home.json b/cypress/fixtures/home.json index a3851a9..bd0d152 100644 --- a/cypress/fixtures/home.json +++ b/cypress/fixtures/home.json @@ -1,5 +1,5 @@ { "textLinkAbout": "À propos", "textLinkUpload": "Contribuer", - "textLinkLogin": "Connexion" + "textLinkLogin": "Sign In" } diff --git a/cypress/fixtures/upload.json b/cypress/fixtures/upload.json index 2c661b3..f2fb63b 100644 --- a/cypress/fixtures/upload.json +++ b/cypress/fixtures/upload.json @@ -1,5 +1,5 @@ { - "textLinkLogin": "Connexion", + "textLinkLogin": "Sign In", "textLinkUpload": "Contribuer", "textButtonUpload": "Déposez des photos dans la zone ou" } diff --git a/cypress/screenshots/about.cy.ts/In the about page -- go to the cli page (failed).png b/cypress/screenshots/about.cy.ts/In the about page -- go to the cli page (failed).png new file mode 100644 index 0000000..1b8cd32 Binary files /dev/null and b/cypress/screenshots/about.cy.ts/In the about page -- go to the cli page (failed).png differ diff --git a/cypress/screenshots/about.cy.ts/In the about page -- go to the login page (failed) (1).png b/cypress/screenshots/about.cy.ts/In the about page -- go to the login page (failed) (1).png new file mode 100644 index 0000000..52f6d10 Binary files /dev/null and b/cypress/screenshots/about.cy.ts/In the about page -- go to the login page (failed) (1).png differ diff --git a/cypress/screenshots/about.cy.ts/In the about page -- go to the login page (failed).png b/cypress/screenshots/about.cy.ts/In the about page -- go to the login page (failed).png new file mode 100644 index 0000000..2d46e44 Binary files /dev/null and b/cypress/screenshots/about.cy.ts/In the about page -- go to the login page (failed).png differ diff --git a/cypress/screenshots/full-course.cy.ts/Testing the full user course -- should access to the uploaded sequence and delete it -- before each hook (failed).png b/cypress/screenshots/full-course.cy.ts/Testing the full user course -- should access to the uploaded sequence and delete it -- before each hook (failed).png new file mode 100644 index 0000000..9935f9e Binary files /dev/null and b/cypress/screenshots/full-course.cy.ts/Testing the full user course -- should access to the uploaded sequence and delete it -- before each hook (failed).png differ diff --git a/cypress/screenshots/home.cy.ts/In the home page -- click on the link in the header to go to the About page (failed).png b/cypress/screenshots/home.cy.ts/In the home page -- click on the link in the header to go to the About page (failed).png new file mode 100644 index 0000000..7291732 Binary files /dev/null and b/cypress/screenshots/home.cy.ts/In the home page -- click on the link in the header to go to the About page (failed).png differ diff --git a/cypress/screenshots/home.cy.ts/In the home page -- click on the link in the header to go to the Login page (failed).png b/cypress/screenshots/home.cy.ts/In the home page -- click on the link in the header to go to the Login page (failed).png new file mode 100644 index 0000000..13ee75c Binary files /dev/null and b/cypress/screenshots/home.cy.ts/In the home page -- click on the link in the header to go to the Login page (failed).png differ diff --git a/cypress/screenshots/login.cy.ts/In the login page -- go to the register form and create an account (failed).png b/cypress/screenshots/login.cy.ts/In the login page -- go to the register form and create an account (failed).png new file mode 100644 index 0000000..3e41813 Binary files /dev/null and b/cypress/screenshots/login.cy.ts/In the login page -- go to the register form and create an account (failed).png differ diff --git a/cypress/screenshots/login.cy.ts/In the login page -- type in the form to login (failed).png b/cypress/screenshots/login.cy.ts/In the login page -- type in the form to login (failed).png new file mode 100644 index 0000000..60c36c0 Binary files /dev/null and b/cypress/screenshots/login.cy.ts/In the login page -- type in the form to login (failed).png differ