Skip to content

Commit

Permalink
run prettier on cypress js files (#7012)
Browse files Browse the repository at this point in the history
  • Loading branch information
DAcodedBEAT authored May 8, 2024
2 parents ee4855d + 9b1b14f commit 5acde0d
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 83 deletions.
3 changes: 0 additions & 3 deletions cypress/e2e/ui/events/standard.events.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ context("Standard User Session", () => {
cy.contains("Berry, Miss Brianna");
});


it("View Event via URL", () => {
cy.loginStandard("EditEventAttendees.php?eventId=3");
cy.contains("Attendees for Event : Summer Camp");
Expand All @@ -26,13 +25,11 @@ context("Standard User Session", () => {
cy.contains("Listing All Church Events");
});


it("View Event via invalid URL id", () => {
cy.loginStandard("EditEventAttendees.php?eventId=99999", false);
cy.contains("Listing All Church Events");
});


it("CheckIn People", () => {
cy.loginStandard("Checkin.php");
cy.contains("Event Checkin");
Expand Down
10 changes: 6 additions & 4 deletions cypress/e2e/ui/people/standard.family.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ context("Standard Family", () => {
cy.get('input[name="Longitude"]').clear();

// Fill in Other Info section
const weddingYear = '2024';
const weddingMonth = '04';
const weddingDay = '03';
cy.get('#WeddingDate').type(`${weddingYear}-${weddingMonth}-${weddingDay}`);
const weddingYear = "2024";
const weddingMonth = "04";
const weddingDay = "03";
cy.get("#WeddingDate").type(
`${weddingYear}-${weddingMonth}-${weddingDay}`,
);

// Fill in Family Members
cy.get('input[name="FirstName1"]').type("Mike");
Expand Down
160 changes: 84 additions & 76 deletions cypress/e2e/ui/people/standard.people.filterbyclassification.spec.js
Original file line number Diff line number Diff line change
@@ -1,77 +1,85 @@
describe('template spec', () => {
it('filter-by-classification', () => {
cy.loginAdmin("OptionManager.php?mode=classes");
cy.get("#inactive4").uncheck();
cy.get("#inactive5").uncheck();
cy.reload();
cy.get("#inactive1").should('not.be.checked');
cy.get("#inactive2").should('not.be.checked');
cy.get("#inactive3").should('not.be.checked');
cy.get("#inactive4").should('not.be.checked');
cy.get("#inactive5").should('not.be.checked');

cy.visit("v2/people?familyActiveStatus=inactive");
cy.get("#members_filter input").type("[email protected]");
cy.contains("No matching records found");

cy.visit("v2/people?familyActiveStatus=all");
cy.get("#members_filter input").type("[email protected]");
cy.contains("(564)-714-4633");

cy.visit("v2/people");
cy.get("#members_filter input").type("[email protected]");
cy.contains("(564)-714-4633");

cy.visit("OptionManager.php?mode=classes");
cy.get("#inactive4").check();
cy.reload();
cy.get("#inactive1").should('not.be.checked');
cy.get("#inactive2").should('not.be.checked');
cy.get("#inactive3").should('not.be.checked');
cy.get("#inactive4").should('be.checked');
cy.get("#inactive5").should('not.be.checked');

cy.visit("v2/people?familyActiveStatus=inactive");
cy.get("#members_filter input").type("[email protected]");
cy.contains("No matching records found");

cy.visit("v2/people?familyActiveStatus=all");
cy.get("#members_filter input").type("[email protected]");
cy.contains("(564)-714-4633");

cy.visit("v2/people");
cy.get("#members_filter input").type("[email protected]");
cy.contains("(564)-714-4633");

cy.visit("OptionManager.php?mode=classes");
cy.get("#inactive5").check();
cy.reload();
cy.get("#inactive1").should('not.be.checked');
cy.get("#inactive2").should('not.be.checked');
cy.get("#inactive3").should('not.be.checked');
cy.get("#inactive4").should('be.checked');
cy.get("#inactive5").should('be.checked');

cy.visit("v2/people?familyActiveStatus=inactive");
cy.get("#members_filter input").type("[email protected]");
cy.contains("(564)-714-4633");

cy.visit("v2/people?familyActiveStatus=all");
cy.get("#members_filter input").type("[email protected]");
cy.contains("(564)-714-4633");

cy.visit("v2/people");
cy.get("#members_filter input").type("[email protected]");
cy.contains("No matching records found");

cy.visit("OptionManager.php?mode=classes");
cy.get("#inactive4").uncheck();
cy.get("#inactive5").uncheck();
cy.reload();
cy.get("#inactive1").should('not.be.checked');
cy.get("#inactive2").should('not.be.checked');
cy.get("#inactive3").should('not.be.checked');
cy.get("#inactive4").should('not.be.checked');
cy.get("#inactive5").should('not.be.checked');
});
describe("template spec", () => {
it("filter-by-classification", () => {
cy.loginAdmin("OptionManager.php?mode=classes");
cy.get("#inactive4").uncheck();
cy.get("#inactive5").uncheck();

cy.reload();

cy.get("#inactive1").should("not.be.checked");
cy.get("#inactive2").should("not.be.checked");
cy.get("#inactive3").should("not.be.checked");
cy.get("#inactive4").should("not.be.checked");
cy.get("#inactive5").should("not.be.checked");

cy.visit("v2/people?familyActiveStatus=inactive");
cy.get("#members_filter input").type("[email protected]");
cy.contains("No matching records found");

cy.visit("v2/people?familyActiveStatus=all");
cy.get("#members_filter input").type("[email protected]");
cy.contains("(564)-714-4633");

cy.visit("v2/people");
cy.get("#members_filter input").type("[email protected]");
cy.contains("(564)-714-4633");

cy.visit("OptionManager.php?mode=classes");
cy.get("#inactive4").check();

cy.reload();

cy.get("#inactive1").should("not.be.checked");
cy.get("#inactive2").should("not.be.checked");
cy.get("#inactive3").should("not.be.checked");
cy.get("#inactive4").should("be.checked");
cy.get("#inactive5").should("not.be.checked");

cy.visit("v2/people?familyActiveStatus=inactive");
cy.get("#members_filter input").type("[email protected]");
cy.contains("No matching records found");

cy.visit("v2/people?familyActiveStatus=all");
cy.get("#members_filter input").type("[email protected]");
cy.contains("(564)-714-4633");

cy.visit("v2/people");
cy.get("#members_filter input").type("[email protected]");
cy.contains("(564)-714-4633");

cy.visit("OptionManager.php?mode=classes");
cy.get("#inactive5").check();

cy.reload();

cy.get("#inactive1").should("not.be.checked");
cy.get("#inactive2").should("not.be.checked");
cy.get("#inactive3").should("not.be.checked");
cy.get("#inactive4").should("be.checked");
cy.get("#inactive5").should("be.checked");

cy.visit("v2/people?familyActiveStatus=inactive");
cy.get("#members_filter input").type("[email protected]");
cy.contains("(564)-714-4633");

cy.visit("v2/people?familyActiveStatus=all");
cy.get("#members_filter input").type("[email protected]");
cy.contains("(564)-714-4633");

cy.visit("v2/people");
cy.get("#members_filter input").type("[email protected]");
cy.contains("No matching records found");

cy.visit("OptionManager.php?mode=classes");
cy.get("#inactive4").uncheck();
cy.get("#inactive5").uncheck();

cy.reload();

cy.get("#inactive1").should("not.be.checked");
cy.get("#inactive2").should("not.be.checked");
cy.get("#inactive3").should("not.be.checked");
cy.get("#inactive4").should("not.be.checked");
cy.get("#inactive5").should("not.be.checked");
});
});

0 comments on commit 5acde0d

Please sign in to comment.