Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamzic committed Feb 24, 2025
1 parent 152f418 commit f15378d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 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 @@ -280,7 +280,7 @@ const receiveResultsSms = () => {
surveyOptin: true,
phone: "0600000000",
},
},
}
).as("post-receive-results-sms")

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

Please sign in to comment.