From 9b1b14f80c7c8297eab701b1f84e4b0bbb702464 Mon Sep 17 00:00:00 2001 From: Arun Philip Date: Wed, 8 May 2024 00:54:13 -0400 Subject: [PATCH] run prettier on cypress js files --- cypress/e2e/ui/events/standard.events.spec.js | 3 - cypress/e2e/ui/people/standard.family.spec.js | 10 +- ...dard.people.filterbyclassification.spec.js | 160 +++++++++--------- 3 files changed, 90 insertions(+), 83 deletions(-) diff --git a/cypress/e2e/ui/events/standard.events.spec.js b/cypress/e2e/ui/events/standard.events.spec.js index 3f235f4800..508d45b084 100644 --- a/cypress/e2e/ui/events/standard.events.spec.js +++ b/cypress/e2e/ui/events/standard.events.spec.js @@ -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"); @@ -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"); diff --git a/cypress/e2e/ui/people/standard.family.spec.js b/cypress/e2e/ui/people/standard.family.spec.js index e845f058ee..b2358ae196 100644 --- a/cypress/e2e/ui/people/standard.family.spec.js +++ b/cypress/e2e/ui/people/standard.family.spec.js @@ -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"); diff --git a/cypress/e2e/ui/people/standard.people.filterbyclassification.spec.js b/cypress/e2e/ui/people/standard.people.filterbyclassification.spec.js index 9f7a255751..f50182e645 100644 --- a/cypress/e2e/ui/people/standard.people.filterbyclassification.spec.js +++ b/cypress/e2e/ui/people/standard.people.filterbyclassification.spec.js @@ -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("edwin.adams@example.com"); - cy.contains("No matching records found"); - - cy.visit("v2/people?familyActiveStatus=all"); - cy.get("#members_filter input").type("edwin.adams@example.com"); - cy.contains("(564)-714-4633"); - - cy.visit("v2/people"); - cy.get("#members_filter input").type("edwin.adams@example.com"); - 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("edwin.adams@example.com"); - cy.contains("No matching records found"); - - cy.visit("v2/people?familyActiveStatus=all"); - cy.get("#members_filter input").type("edwin.adams@example.com"); - cy.contains("(564)-714-4633"); - - cy.visit("v2/people"); - cy.get("#members_filter input").type("edwin.adams@example.com"); - 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("edwin.adams@example.com"); - cy.contains("(564)-714-4633"); - - cy.visit("v2/people?familyActiveStatus=all"); - cy.get("#members_filter input").type("edwin.adams@example.com"); - cy.contains("(564)-714-4633"); - - cy.visit("v2/people"); - cy.get("#members_filter input").type("edwin.adams@example.com"); - 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("edwin.adams@example.com"); + cy.contains("No matching records found"); + + cy.visit("v2/people?familyActiveStatus=all"); + cy.get("#members_filter input").type("edwin.adams@example.com"); + cy.contains("(564)-714-4633"); + + cy.visit("v2/people"); + cy.get("#members_filter input").type("edwin.adams@example.com"); + 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("edwin.adams@example.com"); + cy.contains("No matching records found"); + + cy.visit("v2/people?familyActiveStatus=all"); + cy.get("#members_filter input").type("edwin.adams@example.com"); + cy.contains("(564)-714-4633"); + + cy.visit("v2/people"); + cy.get("#members_filter input").type("edwin.adams@example.com"); + 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("edwin.adams@example.com"); + cy.contains("(564)-714-4633"); + + cy.visit("v2/people?familyActiveStatus=all"); + cy.get("#members_filter input").type("edwin.adams@example.com"); + cy.contains("(564)-714-4633"); + + cy.visit("v2/people"); + cy.get("#members_filter input").type("edwin.adams@example.com"); + 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"); + }); });