Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import selectors from "../../../support/selectors";
import { courseStartDay, courseEndDay } from "../../../support/utils";

describe("Renew Active ECE 5 Year Certificate Application", () => {
it("should sucessfully create a Renewal ECE 5 Year Application", () => {
describe("Active ECE 5 Year Certificate Application Add ECE Assistant", () => {
it("should sucessfully create ECE Assistant Multiple Application", () => {
cy.seedRenewalApplication("ECE5Years", true, false);

cy.reload();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused with this one... what does it do ? Just seems like it just reloads the screen? No other code from the file.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import selectors from "../../../support/selectors";
import { courseStartDay, courseEndDay } from "../../../support/utils";

describe("Active ECE 5 Year Certificate Application and ADD One year ECE ", () => {
it("should sucessfully create an ECE ONE Multiple Certificate Application", () => {
cy.seedRenewalApplication("ECE5Years", true, false);

cy.reload();
/** Dashboard */
cy.get(selectors.dashboard.multiApplyButton).first().click();

/** Application Requirements */
cy.get(selectors.certificationType.applyNowEceOneYearButton).click();
cy.get(selectors.applicationRequirements.applyNowButton).click();

/** Declaration */
cy.get(selectors.declaration.declarationCheckbox).check({ force: true });
cy.get(selectors.declaration.continueButton).click();

/** Contact Information */
cy.get(selectors.applicationWizard.saveAndContinueButton).click();

/** Professional Development */
cy.get(selectors.education.addEducationButton).click();

cy.get(selectors.education.provinceDropDownList).should("exist").type("British Columbia");

cy.get(selectors.education.postSecondaryInstitutionDropDownList).should("exist").type("Other");
cy.get("body").click({ force: true });

cy.get(selectors.education.institutionNameInput).type("TEST Educational Institution");

cy.get(selectors.education.programNameInput).type("TEST ECE Assistant Course");

/* Start Date - DatePicker*/
cy.get(selectors.education.programStartDateInput).click({ force: true });
cy.get(selectors.education.programStartDateInput).clear();
cy.get(selectors.education.programStartDateInput).type(`${courseStartDay} {enter}`);

/* End Date - DatePicker*/
cy.get(selectors.education.programEndDateInput).click({ force: true });
cy.get(selectors.education.programEndDateInput).clear();
cy.get(selectors.education.programEndDateInput).type(`${courseEndDay} {enter}`);

cy.get(selectors.education.studentIDInput).type("1234");
cy.get(selectors.education.nameOnTranscriptRadioDiv).within(() => {
cy.get(selectors.elementType.radio).first().check({ force: true });
});

cy.get(selectors.education.transcriptStatusRadioDiv).within(() => {
cy.get(selectors.elementType.radio).first().check({ force: true });
});
cy.get(selectors.education.saveEducationButton).click();

cy.get(selectors.applicationWizard.saveAndContinueButton).click();

/** Character Reference */
cy.get(selectors.characterReference.lastNameInput).type("Reference Last Name");
cy.get(selectors.characterReference.firstNameInput).type("Reference First Name");
cy.get(selectors.characterReference.emailInput).type("[email protected]");
cy.get(selectors.characterReference.phoneNumberInput).type("1234567890");

cy.get(selectors.applicationWizard.saveAndContinueButton).click();

/** Application Review and Submit */
cy.document().its("readyState").should("eq", "complete");
cy.contains("Review and submit").should("be.visible");
cy.get(selectors.applicationPreview.certificationType).should("be.visible").should("contain.text", "ECE One Year");
cy.get(selectors.applicationPreview.characterReferenceFirstName).should("be.visible").should("contain.text", "Reference First Name");
cy.get(selectors.applicationPreview.characterReferenceLastName).should("be.visible").should("contain.text", "Reference Last Name");
cy.get(selectors.applicationPreview.characterReferenceEmail).should("be.visible").should("contain.text", "[email protected]");

cy.get(selectors.applicationPreview.educationCountry).should("be.visible").should("contain.text", "Canada");

cy.get(selectors.applicationPreview.educationProvince).should("be.visible").should("contain.text", "British Columbia");
cy.get(selectors.applicationWizard.submitApplicationButton).click();

/** Application Submitted */
cy.document().its("readyState").should("eq", "complete");
cy.get(selectors.applicationSubmitted.pageTitle).should("be.visible").should("contain.text", "Application Submitted");
cy.get(selectors.applicationSubmitted.applicationSummaryButton).should("be.visible").should("contain.text", "Go to application summary");
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import selectors from "../../../support/selectors";
import { courseStartDay, courseEndDay } from "../../../support/utils";

describe("Active ECE 5 Year Certificate and Active ECE one Year but ECE 5 year is visible Application", () => {
it("Active 5 year ECE cetification should be visible", () => {
cy.seedRenewalApplication("ECE5Years", false, false);

cy.reload();
/** Dashboard */
cy.seedRenewalApplication("ECEOneYear", false, false);

cy.reload();
cy.contains("Early Childhood Educator - ECE Five Year").should("be.visible");
});

});
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
import selectors from "../../../support/selectors";
import { courseStartDay, courseEndDay, todayDay } from "../../../support/utils";


describe("Active ECE One Year Certificate Application ADd 5 year Certificate", () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpik typo

ADd -> Add

it("should create a sucessfull ECE Five Year Application", () => {
cy.seedRenewalApplication("ECEOneYear", true, false);

cy.reload();
/** Dashboard */
cy.get(selectors.dashboard.multiApplyButton).first().click();
cy.get(selectors.certificationType.applyNowEceFiveYearButton).click();


/** Application Requirements */
cy.get(selectors.certificationType.iteCheckBox).uncheck({ force: true });
cy.get(selectors.certificationType.sneCheckBox).uncheck({ force: true });
cy.get(selectors.applicationRequirements.applyNowButton).click();

/** Declaration */
cy.get(selectors.declaration.declarationCheckbox).check({ force: true });
cy.get(selectors.declaration.continueButton).click();

/** Contact Information */
cy.get(selectors.applicationWizard.saveAndContinueButton).click();

/** Education */
cy.get(selectors.education.addEducationButton).click();

cy.get(selectors.education.provinceDropDownList).should("exist").type("British Columbia");

cy.get(selectors.education.postSecondaryInstitutionDropDownList).should("exist").type("Other");
cy.get("body").click({ force: true });

cy.get(selectors.education.institutionNameInput).type("TEST Educational Institution");

cy.get(selectors.education.programNameInput).type("TEST ECE 5 Year Course");

/* Start Date - DatePicker*/
cy.get(selectors.education.programStartDateInput).click({ force: true });
cy.get(selectors.education.programStartDateInput).clear();
cy.get(selectors.education.programStartDateInput).type(`${courseStartDay} {enter}`);

/* End Date - DatePicker*/
cy.get(selectors.education.programEndDateInput).click({ force: true });
cy.get(selectors.education.programEndDateInput).clear();
cy.get(selectors.education.programEndDateInput).type(`${courseEndDay} {enter}`);

cy.get(selectors.education.studentIDInput).type("1234");
cy.get(selectors.education.nameOnTranscriptRadioDiv).within(() => {
cy.get(selectors.elementType.radio).first().check({ force: true });
});
cy.get(selectors.education.transcriptStatusRadioDiv).within(() => {
cy.get(selectors.elementType.radio).first().check({ force: true });
});
cy.get(selectors.education.saveEducationButton).click();

cy.get(selectors.applicationWizard.saveAndContinueButton).click();

/** Character Reference */
cy.get(selectors.characterReference.lastNameInput).type("CharacterReferenceLastName");
cy.get(selectors.characterReference.firstNameInput).type("CharacterReferenceFirstName");
cy.get(selectors.characterReference.emailInput).type("[email protected]");
cy.get(selectors.characterReference.phoneNumberInput).type("1234567890");

cy.get(selectors.applicationWizard.saveAndContinueButton).click();

/** Work Experience Reference */
cy.document().its("readyState").should("eq", "complete");
cy.get(selectors.workExperienceReference.addReferenceButton).click();

cy.get(selectors.workExperienceReference.lastNameInput).type("WorkReferenceLastName");
cy.get(selectors.workExperienceReference.firstNameInput).type("WorkReferenceFirstName");
cy.get(selectors.workExperienceReference.emailInput).type("[email protected]");
cy.get(selectors.workExperienceReference.phoneNumberInput).type("1234567890");
cy.get(selectors.workExperienceReference.hoursInput).type("500");

cy.get(selectors.workExperienceReference.saveReferenceButton).click();

cy.get(selectors.applicationWizard.saveAndContinueButton).click();

/** Application Review and Submit */
cy.document().its("readyState").should("eq", "complete");

cy.contains("Review and submit").should("be.visible");
cy.get(selectors.applicationPreview.certificationType).should("be.visible").should("contain.text", "ECE Five Year");
cy.get(selectors.applicationPreview.characterReferenceFirstName).should("be.visible").should("contain.text", "CharacterReferenceFirstName");
cy.get(selectors.applicationPreview.characterReferenceLastName).should("be.visible").should("contain.text", "CharacterReferenceLastName");
cy.get(selectors.applicationPreview.characterReferenceEmail).should("be.visible").should("contain.text", "[email protected]");
cy.get(selectors.applicationPreview.educationCountry).should("be.visible").should("contain.text", "Canada");
cy.get(selectors.applicationPreview.educationProvince).should("be.visible").should("contain.text", "British Columbia");

cy.get(selectors.applicationPreview.workReferenceName).should("be.visible").should("contain.text", "WorkReferenceFirstName");
cy.get(selectors.applicationPreview.workReferenceName).should("be.visible").should("contain.text", "WorkReferenceLastName");
cy.get(selectors.applicationPreview.workReferenceEmail).should("be.visible").should("contain.text", "[email protected]");

cy.get(selectors.applicationWizard.submitApplicationButton).click();

/** Application Submitted */
cy.document().its("readyState").should("eq", "complete");
cy.get(selectors.applicationSubmitted.pageTitle).should("be.visible").should("contain.text", "Application Submitted");
cy.get(selectors.applicationSubmitted.applicationSummaryButton).should("be.visible").should("contain.text", "Go to application summary");
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
import selectors from "../../../support/selectors";
import { courseStartDay, courseEndDay, todayDay } from "../../../support/utils";


describe("Active ECE One Year Certificate Application Add 5 year+SNE+ITE Certificaten", () => {
it("should create a sucessfull 5 year+SNE+ITE Application", () => {
cy.seedRenewalApplication("ECEOneYear", true, false);

cy.reload();
/** Dashboard */
cy.get(selectors.dashboard.multiApplyButton).first().click();
cy.get(selectors.certificationType.applyNowEceFiveYearButton).click();


/** Application Requirements */
cy.get(selectors.certificationType.iteCheckBox).check({ force: true });
cy.get(selectors.certificationType.sneCheckBox).check({ force: true });
cy.get(selectors.applicationRequirements.applyNowButton).click();

/** Declaration */
cy.get(selectors.declaration.declarationCheckbox).check({ force: true });
cy.get(selectors.declaration.continueButton).click();

/** Contact Information */
cy.get(selectors.applicationWizard.saveAndContinueButton).click();

/** Education */
cy.get(selectors.education.addEducationButton).click();

cy.get(selectors.education.provinceDropDownList).should("exist").type("British Columbia");

cy.get(selectors.education.postSecondaryInstitutionDropDownList).should("exist").type("Other");
cy.get("body").click({ force: true });

cy.get(selectors.education.institutionNameInput).type("TEST Educational Institution");

cy.get(selectors.education.programNameInput).type("TEST ECE 5 Year Course");

/* Start Date - DatePicker*/
cy.get(selectors.education.programStartDateInput).click({ force: true });
cy.get(selectors.education.programStartDateInput).clear();
cy.get(selectors.education.programStartDateInput).type(`${courseStartDay} {enter}`);

/* End Date - DatePicker*/
cy.get(selectors.education.programEndDateInput).click({ force: true });
cy.get(selectors.education.programEndDateInput).clear();
cy.get(selectors.education.programEndDateInput).type(`${courseEndDay} {enter}`);

cy.get(selectors.education.studentIDInput).type("1234");
cy.get(selectors.education.nameOnTranscriptRadioDiv).within(() => {
cy.get(selectors.elementType.radio).first().check({ force: true });
});
cy.get(selectors.education.transcriptStatusRadioDiv).within(() => {
cy.get(selectors.elementType.radio).first().check({ force: true });
});
cy.get(selectors.education.saveEducationButton).click();

cy.get(selectors.applicationWizard.saveAndContinueButton).click();

/** Character Reference */
cy.get(selectors.characterReference.lastNameInput).type("CharacterReferenceLastName");
cy.get(selectors.characterReference.firstNameInput).type("CharacterReferenceFirstName");
cy.get(selectors.characterReference.emailInput).type("[email protected]");
cy.get(selectors.characterReference.phoneNumberInput).type("1234567890");

cy.get(selectors.applicationWizard.saveAndContinueButton).click();

/** Work Experience Reference */
cy.document().its("readyState").should("eq", "complete");
cy.get(selectors.workExperienceReference.addReferenceButton).click();

cy.get(selectors.workExperienceReference.lastNameInput).type("WorkReferenceLastName");
cy.get(selectors.workExperienceReference.firstNameInput).type("WorkReferenceFirstName");
cy.get(selectors.workExperienceReference.emailInput).type("[email protected]");
cy.get(selectors.workExperienceReference.phoneNumberInput).type("1234567890");
cy.get(selectors.workExperienceReference.hoursInput).type("500");

cy.get(selectors.workExperienceReference.saveReferenceButton).click();

cy.get(selectors.applicationWizard.saveAndContinueButton).click();

/** Application Review and Submit */
cy.document().its("readyState").should("eq", "complete");

cy.contains("Review and submit").should("be.visible");
cy.get(selectors.applicationPreview.certificationType).should("be.visible").should("contain.text", "ECE Five Year");
cy.get(selectors.applicationPreview.characterReferenceFirstName).should("be.visible").should("contain.text", "CharacterReferenceFirstName");
cy.get(selectors.applicationPreview.characterReferenceLastName).should("be.visible").should("contain.text", "CharacterReferenceLastName");
cy.get(selectors.applicationPreview.characterReferenceEmail).should("be.visible").should("contain.text", "[email protected]");
cy.get(selectors.applicationPreview.educationCountry).should("be.visible").should("contain.text", "Canada");
cy.get(selectors.applicationPreview.educationProvince).should("be.visible").should("contain.text", "British Columbia");

cy.get(selectors.applicationPreview.workReferenceName).should("be.visible").should("contain.text", "WorkReferenceFirstName");
cy.get(selectors.applicationPreview.workReferenceName).should("be.visible").should("contain.text", "WorkReferenceLastName");
cy.get(selectors.applicationPreview.workReferenceEmail).should("be.visible").should("contain.text", "[email protected]");

cy.get(selectors.applicationWizard.submitApplicationButton).click();

/** Application Submitted */
cy.document().its("readyState").should("eq", "complete");
cy.get(selectors.applicationSubmitted.pageTitle).should("be.visible").should("contain.text", "Application Submitted");
cy.get(selectors.applicationSubmitted.applicationSummaryButton).should("be.visible").should("contain.text", "Go to application summary");
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import selectors from "../../../support/selectors";
import { courseStartDay, courseEndDay, todayDay } from "../../../support/utils";
const provinceName = "Alberta";
const certificationName = "Early Childhood Educator Level 1";

describe(" Active ECE One Year Certificate Applicatio plus add labour Mobility", () => {
it("should create a sucessfull Labour mobility Application", () => {
cy.seedRenewalApplication("ECEOneYear", true, false);

cy.reload();
/** Dashboard */
cy.get(selectors.dashboard.multiApplyButton).eq(1).click();

/** Transfer Eligibility */
cy.contains("Check your transfer eligibility").should("be.visible");

/** Alberta*/
cy.get(selectors.transferEligibility.provinceDropDownList).should("exist").click({ force: true });
cy.get(selectors.elementType.vListItem).contains(provinceName).click();

/**Out of province Certification Type */
cy.get(selectors.transferEligibility.certificationTypeDropDownList).should("exist").click({ force: true });
cy.get(selectors.elementType.vListItem).contains(certificationName).click();

cy.contains("You can apply to transfer your certification to ECE Assistant certification in B.C.").should("be.visible");

/** View Requirements Button */
cy.get(selectors.transferEligibility.viewRequirementsButton).click();

/**Requirements */
cy.contains("Transfer to ECE Assistant certification").should("be.visible");
cy.get(selectors.applicationRequirements.applyNowButton).click();

/** Declaration */
cy.get(selectors.declaration.declarationCheckbox).check({ force: true });
cy.get(selectors.declaration.continueButton).click();

/** Certificate Information */

cy.contains("Certificate information").should("be.visible");
cy.contains("ECE Assistant").should("be.visible");
cy.contains(provinceName).should("be.visible");
cy.contains(certificationName).should("be.visible");
cy.get(selectors.certificateInformation.nameOnCertificateRadio).first().check({ force: true });
cy.get(selectors.applicationWizard.saveAndContinueButton).click();

cy.ECEAssistantWorkflow(provinceName, certificationName);
});
});
Loading
Loading