Skip to content

Commit

Permalink
Release 3.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSlimvReal authored Mar 15, 2023
2 parents d0609a8 + ffcdf1c commit cd517d2
Show file tree
Hide file tree
Showing 99 changed files with 3,681 additions and 2,624 deletions.
9 changes: 6 additions & 3 deletions e2e/integration/MarkingChildAsDropout.cy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
describe("Scenario: Marking a child as dropout - E2E test", function () {
before("GIVEN I am on the details page of a specific child", function () {
// go to the url with the Child
cy.visit("child/1");
// go to a child
cy.visit("child");
cy.get("tr").eq(2).click();
// save the name of this Child to the variable
cy.get(".mat-title > .remove-margin-bottom").invoke("text").as("childName");
});
Expand All @@ -13,6 +14,8 @@ describe("Scenario: Marking a child as dropout - E2E test", function () {
cy.get(".form-buttons-wrapper:visible").contains("button", "Edit").click();
// select today as the dropout date (which is initially marked as active)
cy.get('[aria-label="Open calendar"]').filter(":visible").click();
// without wait, sometimes the panel is still open after clicking
cy.wait(100);
cy.get(".mat-calendar-body-active:visible").click();
// click on button with the content "Save"
cy.get(".form-buttons-wrapper:visible").contains("button", "Save").click();
Expand All @@ -31,7 +34,7 @@ describe("Scenario: Marking a child as dropout - E2E test", function () {

it("AND I should see the child when I activate the 'inactive' filter", function () {
// click on the button with the content "Inactive"
cy.get('[ng-reflect-placeholder="isActive"]', { timeout: 10000 }).click();
cy.get('[ng-reflect-placeholder="isActive"]').click();
cy.contains("span", "Inactive").should("be.visible").click();
// find at this table the name of child and it should exist
cy.get("table").contains(this.childName.trim()).should("exist");
Expand Down
Loading

0 comments on commit cd517d2

Please sign in to comment.