Skip to content

Commit

Permalink
fix(website): fixed non passing test
Browse files Browse the repository at this point in the history
  • Loading branch information
agarbe committed Nov 14, 2024
1 parent a3fe1fe commit 1daed28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ describe("candidate registration", () => {
cy.get('[data-testid="candidate-registration-form"]').should("exist");
});

it.skip("should let me send a valid candidate registration form ", () => {
it("should let me send a valid candidate registration form ", () => {
cy.intercept("POST", "/api/graphql", (req) => {
stubQuery(req, "getCertification", "certification_bts_chaudronnier.json");
stubQuery(
Expand Down Expand Up @@ -161,10 +161,13 @@ describe("candidate registration", () => {
.children("input")
.type("[email protected]");

cy.get('[data-testid="candidate-registration-form-department-select"]')
cy.get('[data-testid="candidate-modalite-parcours-radio-buttons"] input[value="ACCOMPAGNE"]~label').click();

cy.get('[data-testid="candidate-registration-form-department-select"]')
.children("select")
.select("department1");


cy.get('[data-testid="candidate-registration-submit-button"]').click();

cy.wait("@candidate_askForRegistration");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const CandidateRegistrationForm = ({
<h2>Modalités de parcours</h2>
<div className="grid grid-cols-1 md:grid-cols-2">
<RadioButtons
data-testid="candidate-modalite-parcours-radio-buttons"
className="!inline"
legend="Que souhaitez-vous faire pour ce parcours ? "
options={[
Expand Down

0 comments on commit 1daed28

Please sign in to comment.