Skip to content

Commit

Permalink
CE-181 (#174)
Browse files Browse the repository at this point in the history
Co-authored-by: afwilcox <[email protected]>
  • Loading branch information
cnesmithsalus and afwilcox authored Oct 26, 2023
1 parent 2131732 commit 76c2ece
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion backend/db/migrations/R__Create-Test-Data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ where t.complaint_identifier = '23-006888';

-- update the test records so that we can sort by them and find them via cypress tests
update complaint set incident_reported_utc_timestmp = CURRENT_TIMESTAMP
where complaint_identifier in ('23-007890','23-006888','23-007023','23-000076');
where complaint_identifier in ('23-007890','23-006888','23-007023','23-000076', '23-032528');
update complaint set caller_phone_1 = '+12505561234'
where complaint_identifier = '23-000076';

Expand Down
2 changes: 1 addition & 1 deletion frontend/cypress/e2e/allegation-details-edit.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ describe("Complaint Edit Page spec - Edit Allegation View", () => {
});

it("it has a map on screen with no marker", function () {
cy.navigateToEditScreen(COMPLAINT_TYPES.ERS,"23-40004");
cy.navigateToEditScreen(COMPLAINT_TYPES.ERS,"23-032528");
cy.verifyMapMarkerExists(false);
cy.get(".comp-complaint-details-alert").should("exist");
});
Expand Down
13 changes: 7 additions & 6 deletions frontend/cypress/e2e/hwcr-details-edit.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ describe("Complaint Edit Page spec - Edit View", () => {
cy.get('span[id="comp-details-region"]').contains(editCallDetails.region);

cy.get(".comp-attactant-badge").then(function ($defaultValue) {
expect($defaultValue.eq(0)).to.contain("Livestock");
expect($defaultValue.eq(1)).to.contain("BBQ");
expect($defaultValue.eq(2)).to.contain("Beehive");
expect($defaultValue).to.contain("Livestock");
expect($defaultValue).to.contain("BBQ");
expect($defaultValue).to.contain("Beehive");
});
//end checking edit changes saved
});
Expand Down Expand Up @@ -354,10 +354,11 @@ describe("Complaint Edit Page spec - Edit View", () => {
originalCallDetails.region,
);


cy.get(".comp-attactant-badge").then(function ($defaultValue) {
expect($defaultValue.eq(0)).to.contain("Garbage");
expect($defaultValue.eq(1)).to.contain("Freezer");
expect($defaultValue.eq(2)).to.contain("Compost");
expect($defaultValue).to.contain("Garbage");
expect($defaultValue).to.contain("Freezer");
expect($defaultValue).to.contain("Compost");
});
//end verifying changes are reverted
});
Expand Down
8 changes: 2 additions & 6 deletions frontend/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,13 @@ Cypress.Commands.add(
//-- click on HWCR tab
cy.get(`#${complaintType.toLowerCase()}-tab`).click({ force: true });

// This doesn't always appear... commenting it out for now. I don't think it's required.
//cy.waitForSpinner();

cy.get("#comp-zone-filter").should("exist").click({ force: true }); //clear zone filter so this complaint is in the list view
cy.get("#comp-zone-filter").should("not.exist");
cy.waitForSpinner();

cy.get("#comp-status-filter").should("exist").click({ force: true }); //clear status filter so this complaint is in the list view
cy.get("#comp-status-filter").should("not.exist");

// This doesn't always appear... commenting it out for now. I don't think it's required.
// cy.waitForSpinner();
cy.waitForSpinner();

//-- check to make sure there are items in the table
cy.get("#complaint-list")
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/assets/sass/complaint.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
}
}

p {
white-space: pre-wrap;
}

.comp-complaint-breadcrumb {
background-color: $bc-gov-primary-400;
color: $white;
Expand Down

0 comments on commit 76c2ece

Please sign in to comment.