From cd1aa931ca7e83f40c782fa0d6a3b2c38a7fac02 Mon Sep 17 00:00:00 2001 From: Jeremy PASTOURET Date: Mon, 24 Feb 2025 10:53:51 +0100 Subject: [PATCH] fix: linter error --- cypress/e2e/student.cy.js | 4 ++-- cypress/utils/results.js | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cypress/e2e/student.cy.js b/cypress/e2e/student.cy.js index 98ce876d6e..d52a97ec5f 100644 --- a/cypress/e2e/student.cy.js +++ b/cypress/e2e/student.cy.js @@ -24,7 +24,7 @@ context("Full simulation", () => { foyer.fill__situation("separes") foyer.fill_bourse_criteres_sociaux_nombre_enfants_a_charge(1) foyer.fill_bourse_criteres_sociaux_nombre_enfants_a_charge_dans_enseignement_superieur( - 1, + 1 ) logement.fill__logementType("locataire") @@ -39,7 +39,7 @@ context("Full simulation", () => { logement.fill__en_france(true) logement.fill_depcom( "75001", - "_bourseCriteresSociauxCommuneDomicileFamilial", + "_bourseCriteresSociauxCommuneDomicileFamilial" ) logement.fill__nombreMoisEntreeLogement(-2) diff --git a/cypress/utils/results.js b/cypress/utils/results.js index 8cb5b4fb77..420842ff7c 100644 --- a/cypress/utils/results.js +++ b/cypress/utils/results.js @@ -11,7 +11,7 @@ const back = () => cy.get('[data-testid="back-button"]').click() const IdentifyBenefit = (id, name) => { cy.get( `[itemtype="http://schema.org/GovernmentService"][data-testid="${id}"]`, - { timeout: 10000 }, + { timeout: 10000 } ).as(`${id}-summary`) cy.checkA11y() getBenefitSummary(id) @@ -29,7 +29,7 @@ const hasBafaGroupPreviewBenefit = (mustBeDisplay) => { } else { cy.get( `[itemtype="http://schema.org/GovernmentService"][data-testid="${bafaGroupPreviewId}"]`, - { timeout: 10000 }, + { timeout: 10000 } ).should("not.exist") } } @@ -70,11 +70,11 @@ const hasPrimeActiviteNearbyPlaces = () => { cy.get('[data-testid="nearby-places"]').should("be.visible") cy.get('[data-testid="lieu-title"]').should( "contain", - "Caisse d'allocations familiales", + "Caisse d'allocations familiales" ) cy.get('[data-testid="lieu-informations-link"]').should( "contain", - "Voir les informations", + "Voir les informations" ) } @@ -199,7 +199,7 @@ const hasVeloGroupPreviewBenefit = (mustBeDisplay) => { } else { cy.get( `[itemtype="http://schema.org/GovernmentService"][data-testid="${veloGroupPreviewId}"]`, - { timeout: 10000 }, + { timeout: 10000 } ).should("not.exist") } } @@ -248,7 +248,7 @@ const receiveResultsEmail = () => { const email = "prenom.nom@beta.gouv.fr" cy.get("input#email").should("be.visible").type(email) cy.get( - ".fr-btn:contains(Je reçois mon récapitulatif et je me fais accompagner par téléphone)", + ".fr-btn:contains(Je reçois mon récapitulatif et je me fais accompagner par téléphone)" ) .should("be.visible") .click() @@ -282,7 +282,7 @@ const receiveResultsSms = () => { surveyOptin: true, phone: "0600000000", }, - }, + } ).as("post-receive-results-sms") cy.get("[data-testid='send-email-and-sms-button']", { @@ -293,7 +293,7 @@ const receiveResultsSms = () => { // scroll to input#phone cy.get("input#phone").scrollIntoView().should("be.visible").type(phone) cy.get( - ".fr-btn:contains(Je reçois mon récapitulatif et je me fais accompagner par téléphone)", + ".fr-btn:contains(Je reçois mon récapitulatif et je me fais accompagner par téléphone)" ) .should("be.visible") .click() @@ -308,7 +308,7 @@ const checkResultsRequests = () => { cy.wait("@post-simulation").then(({ request, response }) => { cy.writeFile( `cypress/payloads/${Cypress.spec.fileName}-simulation.json`, - response.body, + response.body ) expect(request.method).to.equal("POST") expect(response.statusCode).to.equal(200)