|
| 1 | +import selectors from "../../../../support/selectors"; |
| 2 | +const provinceName = "Alberta"; |
| 3 | +const certificationName = "Early Childhood Educator Level 3"; |
| 4 | + |
| 5 | +describe("Labour Mobility - ECE Level 3 Certification Transfer Application for Alberta", () => { |
| 6 | + it("should sucessfully create a ECE Level 3 LM Certification Transfer Application for Alberta", () => { |
| 7 | + /** Dashboard */ |
| 8 | + cy.get(selectors.dashboard.transferButton).click(); |
| 9 | + |
| 10 | + /** Transfer Eligibility */ |
| 11 | + cy.contains("Check your transfer eligibility").should("be.visible"); |
| 12 | + |
| 13 | + /** Alberta*/ |
| 14 | + cy.get(selectors.transferEligibility.provinceDropDownList).should("exist").click({ force: true }); |
| 15 | + cy.get(selectors.elementType.vListItem).contains(provinceName).click(); |
| 16 | + |
| 17 | + /**Out of province Certification Type */ |
| 18 | + cy.get(selectors.transferEligibility.certificationTypeDropDownList).should("exist").click({ force: true }); |
| 19 | + cy.get(selectors.elementType.vListItem).contains(certificationName).click(); |
| 20 | + |
| 21 | + cy.contains("Work experience").should("be.visible"); |
| 22 | + |
| 23 | + cy.get(selectors.transferEligibility.programConfirmationRadioYes).check({ force: true }); |
| 24 | + |
| 25 | + cy.contains( |
| 26 | + "You can apply to transfer your certification to ECE Five Year certification with Infant and Toddler Educator (ITE) and Special Needs Educator (SNE) in B.C.", |
| 27 | + ).should("be.visible"); |
| 28 | + |
| 29 | + /** View Requirements Button */ |
| 30 | + cy.get(selectors.transferEligibility.viewRequirementsButton).click(); |
| 31 | + |
| 32 | + /**Requirements */ |
| 33 | + cy.contains("Transfer to ECE Five Year certification").should("be.visible"); |
| 34 | + cy.get(selectors.applicationRequirements.applyNowButton).click(); |
| 35 | + |
| 36 | + /** Declaration */ |
| 37 | + cy.get(selectors.declaration.declarationCheckbox).check({ force: true }); |
| 38 | + cy.get(selectors.declaration.continueButton).click(); |
| 39 | + |
| 40 | + /** Certificate Information */ |
| 41 | + |
| 42 | + cy.contains("Certificate information").should("be.visible"); |
| 43 | + cy.contains("ECE Five Year and Special Needs Educator (SNE) and Infant and Toddler Educator (ITE)").should("be.visible"); |
| 44 | + cy.contains(provinceName).should("be.visible"); |
| 45 | + cy.contains(certificationName).should("be.visible"); |
| 46 | + cy.get(selectors.certificateInformation.nameOnCertificateRadio).first().check({ force: true }); |
| 47 | + cy.get(selectors.applicationWizard.saveAndContinueButton).click(); |
| 48 | + |
| 49 | + cy.ECEFiveYearWorkflow(provinceName, certificationName); |
| 50 | + }); |
| 51 | +}); |
0 commit comments