Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit tests #138

Merged
merged 27 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
c65a105
Edit tests
cnesmithsalus Sep 27, 2023
43acf49
Merge branch 'main' into COMPENF-880
cnesmithsalus Sep 27, 2023
f5b1909
edit cypress updates
cnesmithsalus Sep 28, 2023
2bc33b7
Merge branch 'COMPENF-880' of https://github.com/bcgov/nr-compliance-…
cnesmithsalus Sep 28, 2023
48a792c
trying backspace
cnesmithsalus Sep 28, 2023
2c1cdb5
Update hwcr-details-edit.cy.ts
cnesmithsalus Sep 28, 2023
3103089
Added new cypress command to input text and trigger events
barrfalk Sep 28, 2023
7a8b8e6
Allegation complaint tests and small fixes to HWCR
cnesmithsalus Sep 28, 2023
b65b7c3
Merge branch 'main' into COMPENF-880
cnesmithsalus Sep 28, 2023
ab32048
Update complaint-details.tsx
cnesmithsalus Sep 28, 2023
55c7d45
Merge branch 'COMPENF-880' of https://github.com/bcgov/nr-compliance-…
cnesmithsalus Sep 28, 2023
f99150a
Merge branch 'main' into COMPENF-880
cnesmithsalus Sep 29, 2023
1f97173
adding click events to change focus
cnesmithsalus Sep 29, 2023
8e262a4
Update cypress.config.ts
cnesmithsalus Sep 29, 2023
694c110
Update allegation-details-edit.cy.ts
cnesmithsalus Sep 29, 2023
d964c9e
Merge branch 'main' into COMPENF-880
afwilcox Sep 29, 2023
97b6904
Update complaints.tsx
cnesmithsalus Sep 29, 2023
53be8e7
Merge branch 'main' into COMPENF-880
afwilcox Oct 4, 2023
a036bcc
Cypress Updates
afwilcox Oct 4, 2023
45a1a34
Hide create button in this PR
afwilcox Oct 4, 2023
bc0a086
Merge branch 'main' into COMPENF-880
afwilcox Oct 5, 2023
be01542
Cleanup Flyway to move DML into Repeatable Scripts
afwilcox Oct 5, 2023
ce0bf44
Merge branch 'main' into COMPENF-880
afwilcox Oct 5, 2023
e9dd225
Cypress Enhancements
afwilcox Oct 5, 2023
89a41e4
Merge branch 'COMPENF-880' of https://github.com/bcgov/nr-compliance-…
afwilcox Oct 5, 2023
0976927
Updated spinner check on ERS Cypress
afwilcox Oct 5, 2023
41a71a2
Remove attractant check from cypress
afwilcox Oct 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,6 @@ test-report.xml
*.DS_Store
*.mp4
frontend/cypress/screenshots/spec.cy.ts/template spec -- passes (failed).png
frontend/cypress/screenshots/hwcr-details-edit.cy.ts/Complaint Edit Page spec - Edit View -- Navigate to the Complaint Edit page & change data, save, navigate to read-only, return to edit and reset data (failed).png
frontend/cypress/screenshots/allegation-details-edit.cy.ts/Complaint Edit Page spec - Edit Allegation View -- Navigate to the Complaint Edit page & check inputs (failed).png
frontend/cypress/screenshots/hwcr-details-edit.cy.ts/Complaint Edit Page spec - Edit View -- Navigate to the Complaint Edit page & check inputs (failed).png
20 changes: 12 additions & 8 deletions backend/db/migrations/R__Create-Test-Data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,6 @@ INSERT INTO public.office
VALUES('9fc7327b-b206-4a5c-88f1-2875a456eb49'::uuid, 'nr-compliance-enforcement', '2023-06-29 22:16:16.754', 'nr-compliance-enforcement', '2023-06-29 22:16:16.754', 'WLMSLK', 'COS')
ON CONFLICT DO NOTHING;

-- Reset offices to nr-compliance-enforcement values

UPDATE public.officer SET office_guid = 'cdd9964e-7878-44c1-b4a2-0290c6345dec' WHERE office_guid = '914f8725-7100-4f56-a39b-1c18b0eccb55';
UPDATE public.officer SET office_guid = 'b494082e-35a3-468f-8955-4aa002066b36' WHERE office_guid = '39e7ad0a-20b1-48b4-be70-dfcc5bc01c3c';
UPDATE public.officer SET office_guid = 'b494082e-35a3-468f-8955-4aa002066b36' WHERE office_guid = '05633ab9-1502-4566-9364-4b3dac7c1354';
UPDATE public.officer SET office_guid = 'b494082e-35a3-468f-8955-4aa002066b36' WHERE office_guid = '7da19946-4525-43ff-b4b6-d243a2addaaa';
UPDATE public.officer SET office_guid = 'b494082e-35a3-468f-8955-4aa002066b36' WHERE office_guid = '4b3a8974-1975-4aaf-9e0a-2d3f5d217805';

-------------------------
-- Insert PERSON records
Expand Down Expand Up @@ -1284,4 +1277,15 @@ where t.complaint_identifier = '23-006888';
update complaint set incident_reported_datetime = CURRENT_TIMESTAMP
where complaint_identifier in ('23-007890','23-006888','23-007023','23-000076');
update complaint set caller_phone_1 = '+12505561234'
where complaint_identifier = '23-000076';
where complaint_identifier = '23-000076';

-- Reset offices to nr-compliance-enforcement values

UPDATE public.officer SET office_guid = 'cdd9964e-7878-44c1-b4a2-0290c6345dec' WHERE office_guid = '914f8725-7100-4f56-a39b-1c18b0eccb55';
UPDATE public.officer SET office_guid = 'b494082e-35a3-468f-8955-4aa002066b36' WHERE office_guid = '39e7ad0a-20b1-48b4-be70-dfcc5bc01c3c';
UPDATE public.officer SET office_guid = 'b494082e-35a3-468f-8955-4aa002066b36' WHERE office_guid = '05633ab9-1502-4566-9364-4b3dac7c1354';
UPDATE public.officer SET office_guid = 'b494082e-35a3-468f-8955-4aa002066b36' WHERE office_guid = '7da19946-4525-43ff-b4b6-d243a2addaaa';
UPDATE public.officer SET office_guid = 'b494082e-35a3-468f-8955-4aa002066b36' WHERE office_guid = '4b3a8974-1975-4aaf-9e0a-2d3f5d217805';

--- Change Chris' Office to Kamloops to align with Unit tests
UPDATE officer set office_guid = '3a070028-2c6f-4ea9-a548-271cf076280a' WHERE user_id = 'CNESMITH';
3 changes: 1 addition & 2 deletions backend/src/v1/complaint/dto/complaint.dto.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { ApiProperty } from '@nestjs/swagger';
import { UUID } from 'crypto';
import { AgencyCode } from '../../agency_code/entities/agency_code.entity';
import { ComplaintStatusCode } from '../../complaint_status_code/entities/complaint_status_code.entity';
import { GeoOrganizationUnitCode } from '../../geo_organization_unit_code/entities/geo_organization_unit_code.entity';
import { Geometry, Point } from 'geojson';
import { Point } from 'geojson';
import { CosGeoOrgUnit } from '../../cos_geo_org_unit/entities/cos_geo_org_unit.entity';
import { PersonComplaintXref } from '../../person_complaint_xref/entities/person_complaint_xref.entity';

Expand Down
2 changes: 1 addition & 1 deletion frontend/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import dotenv from 'dotenv';
dotenv.config({ path: './.env' });

export default defineConfig({
defaultCommandTimeout: 10000,
defaultCommandTimeout: 15000,
e2e: {
baseUrl: 'http://localhost:3000',
experimentalStudio: true,
Expand Down
37 changes: 37 additions & 0 deletions frontend/cypress/downloads/download.htm

Large diffs are not rendered by default.

Loading
Loading