update fullcourse test

This commit is contained in:
antoine-de
2023-09-18 17:45:46 +02:00
committed by Andreani Jean
parent d1779da92d
commit aa257adbcf
3 changed files with 4 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ test:e2e:
- apk add --update --no-cache docker-cli docker-cli-compose git
- PROJECT_DIR=$PWD docker compose -f cypress/docker-compose-geovisio.yml -f cypress/docker-compose-gitlab-override.yml run --rm e2e
after_script:
- PROJECT_DIR=$PWD docker compose -f cypress/docker-compose-geovisio.yml -f cypress/docker-compose-gitlab-override.yml logs || true
- PROJECT_DIR=$PWD docker compose -f cypress/docker-compose-geovisio.yml -f cypress/docker-compose-gitlab-override.yml logs web || true
- PROJECT_DIR=$PWD docker compose -f cypress/docker-compose-geovisio.yml -f cypress/docker-compose-gitlab-override.yml down || true
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
artifacts:

View File

@@ -19,7 +19,7 @@ services:
ports:
- 5173:5173
healthcheck:
test: curl --fail http://localhost:5173
test: curl --fail http://0.0.0.0:5173
timeout: 10s
interval: 1s
retries: 20
@@ -52,6 +52,3 @@ services:
environment:
GEOVISIO_BASE_URL: http://api.localtest.me:5000
KEYCLOAK_FRONTEND_URL: http://api.localtest.me:5000/api/auth/login
networks:
web: {}

View File

@@ -1,5 +1,5 @@
describe('Testing the full user course', () => {
beforeEach(() => {
it('should access to the uploaded sequence and delete it', () => {
cy.visit(`${Cypress.env('api_url')}api/auth/login`)
cy.fixture('upload').then((uploadData) => {
cy.get('#username').type('elysee')
@@ -17,9 +17,6 @@ describe('Testing the full user course', () => {
{ force: true }
)
cy.get('button[type=submit]').click()
cy.get('button[type=button]').click()
})
it('should access to the uploaded sequence and delete it', () => {
cy.get('.sequence-title').then(($span) => {
const sequenceTitle = $span.text()
cy.fixture('full-course').then((fullCourseData) => {
@@ -32,4 +29,4 @@ describe('Testing the full user course', () => {
})
})
export {}
export { }