-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run prettier on cypress js files (#7012)
- Loading branch information
Showing
3 changed files
with
90 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
160 changes: 84 additions & 76 deletions
160
cypress/e2e/ui/people/standard.people.filterbyclassification.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
}); | ||
}); |