-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changelog : - Ajoute un paragraphe sur notre page mentions légales #314 - New new matomo à brancher [NGC-420] #313 - Retours aide à la saisie trajets [NGC-250] #312 - Corrige l'affichage des issues créées dans la page /modele [NGC-167] #309 - Fix: use the order of the sum to sort sub categories - [NGC-372] #308 - Fix(publicodes-state): correctly collect mosaic questions from all mosaic questions #307 - Harmonise le style des titres [NGC-419] #303 - Trad manquantes (NGC-399) #302 - Ajoute le module de suppression / de quittage de groupe [NGC-219] #300 - Modifie le style des champs détail de trajets [NGC-387] #299 - Améliorations sur la page de fin [NGC-358, NGC-322] #298 - Modifie le taux d'échantillonnage de Sentry #297 - Remplace avec le bon composant "Comment agir" [NGC-322] #295 - Investiguer erreur sentry transport.deuxroues [NGC-360] #293 - Corrige les redirections erronées [NGC-254] #291 - feat: import local persona for local dev #292 - Ré-ajoute le total barré dans le composant Total [NGC-59] #290
- Loading branch information
1 parent
22cbaf4
commit 7fef512
Showing
200 changed files
with
2,733 additions
and
1,737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { visit } from '../../../helpers/interactions/visit' | ||
|
||
describe('The Action page', { testIsolation: false }, () => { | ||
it('should render without breaking the app', () => { | ||
visit('actions') | ||
|
||
cy.get('h1') | ||
.contains(Cypress.env('testLangURL') === 'en' ? 'Act' : 'Agir') | ||
.should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { visit } from '../../../helpers/interactions/visit' | ||
|
||
describe('The Ambassadeurs page', () => { | ||
it('should render without breaking the app', () => { | ||
visit('ambassadeurs') | ||
|
||
cy.get('h1') | ||
.contains( | ||
Cypress.env('testLangURL') === 'en' ? 'Ambassadors' : 'Ambassadeurs' | ||
) | ||
.should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { visit } from '../../../helpers/interactions/visit' | ||
|
||
describe('The Blog page', { testIsolation: false }, () => { | ||
it('should render without breaking the app', () => { | ||
visit('blog') | ||
|
||
cy.get('h1').contains('Blog').should('be.visible') | ||
}) | ||
|
||
it('displays a list of articles, which are themselves displayed correctly', () => { | ||
cy.get('ul[data-cypress-id="blog-list"]').should('be.visible') | ||
|
||
cy.get('ul[data-cypress-id="blog-list"] > a').first().click() | ||
|
||
cy.wait(1000) | ||
|
||
cy.get('h1').should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { visit } from '../../../helpers/interactions/visit' | ||
|
||
describe('The Diffuser NGC page', { testIsolation: false }, () => { | ||
it('should render without breaking the app', () => { | ||
visit('diffuser') | ||
|
||
cy.get('h1').contains('Diffuser Nos Gestes Climat').should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { visit } from '../../../helpers/interactions/visit' | ||
|
||
describe('The Documentation landing page', () => { | ||
it('should render without breaking the app', () => { | ||
visit('documentation') | ||
|
||
cy.get('h1').contains('Documentation').should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { | ||
DOCUMENTATION_LAUNCH_BUTTON, | ||
DOCUMENTATION_TITLE, | ||
} from '../../../constants/elements-ids' | ||
import { visit } from '../../../helpers/interactions/visit' | ||
|
||
describe('The Documentation page', { testIsolation: false }, () => { | ||
it('should render without breaking the app (server side rendered)', () => { | ||
visit('documentation/bilan') | ||
|
||
cy.get(`h1[data-cypress-id="${DOCUMENTATION_TITLE}"]`).should('be.visible') | ||
}) | ||
|
||
it('should render the client side documentation upon click on the launch button', () => { | ||
cy.get(`button[data-cypress-id="${DOCUMENTATION_LAUNCH_BUTTON}"]`).click() | ||
|
||
cy.get('div[id="documentation-rule-root"]').should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { visit } from '../../../helpers/interactions/visit' | ||
|
||
describe('The Fin page', () => { | ||
it('should render without breaking the app', () => { | ||
visit('fin') | ||
|
||
cy.get('h1[data-cypress-id="fin-title"]').should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { visit } from '../../../helpers/interactions/visit' | ||
|
||
describe('The International page', { testIsolation: false }, () => { | ||
it('should render without breaking the app', () => { | ||
visit('international') | ||
|
||
cy.get('h1') | ||
.contains( | ||
Cypress.env('testLangURL') === 'en' | ||
? 'The international climate footprint calculator' | ||
: 'Le calculateur d’empreinte climat international' | ||
) | ||
.should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import { visit } from '../../../helpers/interactions/visit' | ||
|
||
describe('check for about page status', () => { | ||
beforeEach(() => { | ||
it('displays at least one news title', () => { | ||
visit('nouveautes') | ||
}) | ||
|
||
it('displays at least one news title', () => { | ||
cy.get('[data-cypress-id="news-title"]').should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import { visit } from '../../../helpers/interactions/visit' | ||
|
||
describe('check for personas page status', () => { | ||
beforeEach(() => { | ||
visit('/') | ||
cy.wait(1000) | ||
visit('/personas') | ||
}) | ||
|
||
describe('The Personas page', () => { | ||
it('has a title', () => { | ||
visit('personas') | ||
|
||
cy.get('[data-cypress-id="personas-title"]').should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { | ||
PLAN_ACTIONS_TITLE, | ||
PLAN_OUTILS_TITLE, | ||
} from '../../../constants/elements-ids' | ||
import { visit } from '../../../helpers/interactions/visit' | ||
|
||
describe('The Plan du site page', { testIsolation: false }, () => { | ||
it('should render without breaking the app', () => { | ||
visit('plan-du-site') | ||
|
||
cy.get('h1') | ||
.contains( | ||
Cypress.env('testLangURL') === 'en' ? 'Site map' : 'Plan du site' | ||
) | ||
.should('be.visible') | ||
}) | ||
|
||
it('should display hardcoded elements and dynamically generated elements (the actions list)', () => { | ||
cy.get(`h2[data-cypress-id="${PLAN_OUTILS_TITLE}"`).should('be.visible') | ||
|
||
cy.get(`h2[data-cypress-id="${PLAN_ACTIONS_TITLE}"`).should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { visit } from '../../../helpers/interactions/visit' | ||
|
||
describe('The Profil page', { testIsolation: false }, () => { | ||
it('should render without breaking the app', () => { | ||
visit('profil') | ||
|
||
cy.get('h1') | ||
.contains( | ||
Cypress.env('testLangURL') === 'en' ? 'My profile' : 'Mon profil' | ||
) | ||
.should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function getNamespace(ruleName) { | ||
return !ruleName ? undefined : ruleName.split(' . ')[0] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.