diff --git a/frontend/cypress/e2e/firearm-fiability.cy.js b/frontend/cypress/e2e/firearm-fiability.cy.js index f944953d..5415c9b7 100644 --- a/frontend/cypress/e2e/firearm-fiability.cy.js +++ b/frontend/cypress/e2e/firearm-fiability.cy.js @@ -43,7 +43,7 @@ describe('Firearm Fiability', () => { expect(response.statusCode).to.eq(200) }) cy.url().should('contain', '/guide-identification/resultat-typologie') - cy.contains('h3', 'Catégorie non déterminée') + cy.contains('h2', 'Catégorie non déterminée') cy.get('h2').should(() => { expect(localStorage.getItem('confidenceLevel')).to.eq('"low"') }) diff --git a/frontend/cypress/e2e/firearm-securing.cy.js b/frontend/cypress/e2e/firearm-securing.cy.js index 1b0d6de7..4f1a57fc 100644 --- a/frontend/cypress/e2e/firearm-securing.cy.js +++ b/frontend/cypress/e2e/firearm-securing.cy.js @@ -14,13 +14,13 @@ describe('Securing Firearm and Identification', () => { cy.getByDataTestid('button-next').click() cy.url().should('contain', '/mise-en-securite-tutoriel') cy.getVideo() - cy.contains('h2', 'Mettre en sécurité mon arme') + cy.contains('h1', 'Mettre en sécurité mon arme') cy.contains('li', 'Actionner la culasse') cy.getByDataTestid('button-next').click() - cy.contains('h2', 'Fin de la mise en sécurité') + cy.contains('h1', 'Fin de la mise en sécurité') cy.getByDataTestid('go-to-identification').click() cy.url().should('contain', '/guide-identification/resultat-typologie') - cy.contains('h2', 'Typologie de l\'arme') + cy.contains('h1', 'Typologie de l\'arme') cy.contains('p', 'Basegun a identifié votre arme') cy.getByDataTestid('next-step').click() cy.IdentificationPistoletSemiAuto() diff --git a/frontend/cypress/e2e/recommendations-civilians-vs-fsi.cy.js b/frontend/cypress/e2e/recommendations-civilians-vs-fsi.cy.js index 87d03eb9..2600c97b 100644 --- a/frontend/cypress/e2e/recommendations-civilians-vs-fsi.cy.js +++ b/frontend/cypress/e2e/recommendations-civilians-vs-fsi.cy.js @@ -11,7 +11,7 @@ describe('Recommendations Civilians vs FSI', () => { cy.getByDataTestid('secure-firearm') .contains('Je veux mettre en sécurité mon arme') .click() - cy.contains('h2', 'Mettre en sécurité mon arme') + cy.contains('h1', 'Mettre en sécurité mon arme') cy.contains('p', 'En cas de doute,') }) @@ -27,7 +27,7 @@ describe('Recommendations Civilians vs FSI', () => { cy.getByDataTestid('secure-firearm') .contains('Je veux mettre en sécurité mon arme') .click() - cy.contains('h2', 'Mettre en sécurité mon arme') + cy.contains('h1', 'Mettre en sécurité mon arme') cy.contains('span', 'extraire des munitions') }) }) diff --git a/frontend/cypress/e2e/shoulder-bolt-rifle-securing.cy.js b/frontend/cypress/e2e/shoulder-bolt-rifle-securing.cy.js index 08485066..3d2605b7 100644 --- a/frontend/cypress/e2e/shoulder-bolt-rifle-securing.cy.js +++ b/frontend/cypress/e2e/shoulder-bolt-rifle-securing.cy.js @@ -9,7 +9,7 @@ describe('Shoulder Bolt Rifle Securing', () => { }) cy.getVideo() cy.url().should('contain', '/mise-en-securite-tutoriel') - cy.contains('h2', 'Mettre en sécurité mon arme') + cy.contains('h1', 'Mettre en sécurité mon arme') cy.contains('li', 'Ouvrez la culasse') cy.getByDataTestid('button-next').click() cy.IdentificationShoulderBoltRifle() diff --git a/frontend/cypress/e2e/typology-revolver-securing.cy.js b/frontend/cypress/e2e/typology-revolver-securing.cy.js index a726bddf..84528006 100644 --- a/frontend/cypress/e2e/typology-revolver-securing.cy.js +++ b/frontend/cypress/e2e/typology-revolver-securing.cy.js @@ -13,7 +13,7 @@ describe('Typology Revolver Securing', () => { cy.getByDataTestid('button-next').should('not.have.attr', 'disabled') cy.getByDataTestid('button-next').click() cy.url().should('contain', '/fin-mise-en-securite') - cy.contains('h2', 'mise en sécurité') + cy.contains('h1', 'mise en sécurité') cy.contains('p', 'les manipulations sont complexes') cy.getByDataTestid('go-to-identification').click() cy.url().should('contain', '/guide-identification/resultat-typologie') @@ -33,7 +33,7 @@ describe('Typology Revolver Securing', () => { cy.getByDataTestid('button-next').should('not.have.attr', 'disabled') cy.getByDataTestid('button-next').click() cy.getVideo() - cy.contains('h2', 'Mettre en sécurité mon arme') + cy.contains('h1', 'Mettre en sécurité mon arme') cy.contains('li', 'Tirer ou pousser') cy.getByDataTestid('button-next').click() cy.url().should('contain', '/fin-mise-en-securite') @@ -60,7 +60,7 @@ describe('Typology Revolver Securing', () => { cy.contains('Le barillet ne bascule pas').first().click() cy.getByDataTestid('button-next').should('not.have.attr', 'disabled') cy.getByDataTestid('button-next').click() - cy.contains('h2', 'Mettre en sécurité mon arme') + cy.contains('h1', 'Mettre en sécurité mon arme') cy.contains('li', 'Contrôler que chaque chambre') cy.getByDataTestid('button-next').click() cy.url().should('contain', '/fin-mise-en-securite') diff --git a/frontend/cypress/support/commands.js b/frontend/cypress/support/commands.js index 55207960..a78caadf 100644 --- a/frontend/cypress/support/commands.js +++ b/frontend/cypress/support/commands.js @@ -74,17 +74,17 @@ Cypress.Commands.add('miseEnSecurite', () => { cy.getByDataTestid('secure-firearm') .contains('Je veux mettre en sécurité mon arme') .click() - cy.contains('h2', 'Mettre en sécurité mon arme') + cy.contains('h1', 'Mettre en sécurité mon arme') cy.contains('span', 'extraire des munitions') cy.getByDataTestid('button-next') .contains('Suivant') .click() - cy.contains('h2', 'Mettre en sécurité mon arme') + cy.contains('h1', 'Mettre en sécurité mon arme') cy.contains('span', 'DIRECTION SÛRE') cy.getByDataTestid('button-next') .contains('Suivant') .click() - cy.contains('h2', 'Mettre en sécurité mon arme') + cy.contains('h1', 'Mettre en sécurité mon arme') cy.contains('span', 'tutoriel adapté') cy.getByDataTestid('button-next') .contains('Suivant') @@ -103,7 +103,7 @@ Cypress.Commands.add('Identification', () => { .contains('J’ai déjà mis mon arme en sécurité, je veux l’identifier') .click() cy.url().should('contain', '/instructions') - cy.contains('h3', 'Pour un résultat optimal') + cy.contains('h1', 'Pour un résultat optimal') cy.contains('span', 'canon vers la droite') }) @@ -179,7 +179,7 @@ Cypress.Commands.add('IdentificationDummyPistolet', () => { }) Cypress.Commands.add('pasDeGuide', () => { - cy.contains('h2', 'Pas de guide de mise en sécurité pour votre arme') + cy.contains('h1', 'Pas de guide de mise en sécurité pour votre arme') cy.url().should('contain', '/fin-mise-en-securite') cy.getByDataTestid('go-to-identification').click() cy.url().should('contain', '/guide-identification/resultat-typologie') diff --git a/frontend/src/components/AskingExpert.vue b/frontend/src/components/AskingExpert.vue index 72ab76c1..9e317d8f 100644 --- a/frontend/src/components/AskingExpert.vue +++ b/frontend/src/components/AskingExpert.vue @@ -72,13 +72,13 @@ async function sendTutorialFeedback () { >