text: // https://docs.cypress.io/api/introduction/api.html
  /* eslint-disable jest/valid-expect */
  /* eslint-disable jest/valid-expect-in-promise */
  
  const testYear = new Date().getFullYear() - 1;
  const backendLastName = "GOTTNER";
  const backendFirstName = "MICHAEL";
  const backendPractitionerNumber = "00001";
  
  describe("Pay Practitioner-CSR", () => {
    it("submits with optional fields not filled", () => {
      cy.visit("/pay-practitioner-csr");
      //Claim Count
      cy.location().should((loc) => {
        expect(loc.pathname).to.eq("/pppp/pay-practitioner-csr");
      });
  
      cy.get("[data-cy=captchaInput]").type("irobot");
      cy.get("[data-cy=consentCheckbox]").click();
      cy.get("[data-cy=consentContinue]").click();
  
      cy.get("select")
        .find("option[data-cy=MedicalClaim1]")
        .then(($el) => $el.get(0).setAttribute("selected", "selected"))
        .parent()
        .trigger("change");
  
      cy.get("select")
        .find("option[data-cy=HospitalClaim1]")
        .then(($el) => $el.get(0).setAttribute("selected", "selected"))
        .parent()
        .trigger("change");
  
      cy.get("[data-cy=continueBar]").click();
  
      //Main Form
      cy.location().should((loc) => {
        expect(loc.pathname).to.eq("/pppp/pay-practitioner-csr/main-form");
      });
  
      cy.get("[data-cy=PRN]").type("1111111111");
      cy.get("[data-cy=continueBar]").click();
  
      //Review page
      cy.location().should((loc) => {
        expect(loc.pathname).to.eq("/pppp/pay-practitioner-csr/review");
      });
  
      cy.get("[data-cy=continueBar]").click();
  
      cy.location().should((loc) => {
        expect(loc.pathname).to.eq("/pppp/pay-practitioner-csr/submission");
      });
    });
  });
  