This commit is contained in:
Andreani Jean
2023-12-12 15:05:25 +01:00
parent be2cdbb62b
commit 9c2ab2453c
10 changed files with 19 additions and 14 deletions

View File

@@ -36,6 +36,7 @@ services:
environment:
- CYPRESS_baseUrl=http://front.localtest.me:5173/
- CYPRESS_api_url=http://api.localtest.me:5000/
- LANG=fr
command: sleep 2 && yarn add --dev cypress && ./node_modules/.bin/cypress install && yarn test:e2e
depends_on:
web:

View File

@@ -1,6 +1,7 @@
describe('In the contribute page', () => {
it('go to the login page', () => {
cy.visit('pourquoi-contribuer')
cy.visit('/pourquoi-contribuer')
cy.get('.upload-text').scrollIntoView()
cy.fixture('contribute').then((contributeData: contributeInterface) => {
cy.contains(contributeData.textButtonContribute).click()
})
@@ -8,11 +9,12 @@ describe('In the contribute page', () => {
it('go to the doc pages', () => {
cy.visit('pourquoi-contribuer')
cy.fixture('contribute').then((contributeData: contributeInterface) => {
cy.contains(contributeData.textButtonDocCli).click()
cy.contains(contributeData.textButtonDoc).click()
cy.get('.upload-text').scrollIntoView()
cy.contains(contributeData.textButtonDocPython).click()
cy.contains(contributeData.textButtonCli).click()
cy.contains(contributeData.textButtonDocCli).click()
cy.contains(contributeData.textButtonTiles).click()
cy.contains(contributeData.textButtonDoc).click()
})
})
})

View File

@@ -2,18 +2,20 @@ describe('In the home page', () => {
it('click on the link in the header to go to the About page', () => {
cy.visit('/')
cy.fixture('home').then((homeData) => {
cy.contains(homeData.textLinkAbout).click()
cy.contains(homeData.textLinkContribute).click()
cy.url().should('include', '/pourquoi-contribuer')
})
})
it('click on the link in the header to go to the Login page', () => {
it('click on the link in the footer to go to Panoramax.fr', () => {
cy.visit('/')
cy.fixture('home').then((homeData) => {
cy.contains(homeData.textLinkLogin).click()
cy.url().should(
'include',
'/realms/geovisio/protocol/openid-connect/auth'
)
cy.contains(homeData.textLinkPanoramax).click()
})
})
it('click on the link in the footer to go to Gitlab', () => {
cy.visit('/')
cy.fixture('home').then((homeData) => {
cy.contains(homeData.textLinkGitlab).click()
})
})
})

View File

@@ -1,5 +1,5 @@
{
"textButtonContribute": "+ Partager des images",
"textButtonContribute": "Partager des images",
"textButtonDocCli": "Voir la documentation",
"textButtonDoc": "Retrouvez sa documentation ici",
"textButtonDocPython": "de python (au moins la version 3.8)",

View File

@@ -1,5 +1,5 @@
{
"textLinkAbout": "Pourquoi contribuer ?",
"textLinkUpload": "Pourquoi contribuer ?",
"textLinkLogin": "Connexion"
"textLinkContribute": "Pourquoi contribuer ?",
"textLinkPanoramax": "Découvrir Panoramax",
"textLinkGitlab": "Voir le code"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB