Skip to content

Commit

Permalink
fix: linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
jenovateurs committed Feb 24, 2025
1 parent 2741038 commit cd1aa93
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/student.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -39,7 +39,7 @@ context("Full simulation", () => {
logement.fill__en_france(true)
logement.fill_depcom(
"75001",
"_bourseCriteresSociauxCommuneDomicileFamilial",
"_bourseCriteresSociauxCommuneDomicileFamilial"
)
logement.fill__nombreMoisEntreeLogement(-2)

Expand Down
18 changes: 9 additions & 9 deletions cypress/utils/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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")
}
}
Expand Down Expand Up @@ -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"
)
}

Expand Down Expand Up @@ -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")
}
}
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -282,7 +282,7 @@ const receiveResultsSms = () => {
surveyOptin: true,
phone: "0600000000",
},
},
}
).as("post-receive-results-sms")

cy.get("[data-testid='send-email-and-sms-button']", {
Expand All @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit cd1aa93

Please sign in to comment.