coronasafe/care_fe

View on GitHub
cypress/e2e/patient_spec/patient_details.cy.ts

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Similar blocks of code found in 6 locations. Consider refactoring.
Open

beforeEach(() => {
cy.viewport(viewPort.laptopStandard.width, viewPort.laptopStandard.height);
cy.loginByApi("devdoctor");
cy.visit("/");
});
Severity: Major
Found in cypress/e2e/patient_spec/patient_details.cy.ts and 5 other locations - About 1 hr to fix
cypress/e2e/facility_spec/facility_creation.cy.ts on lines 17..21
cypress/e2e/patient_spec/patient_creation.cy.ts on lines 23..27
cypress/e2e/patient_spec/patient_encounter.cy.ts on lines 11..15
cypress/e2e/patient_spec/patient_prescription.cy.ts on lines 12..16
cypress/e2e/users_spec/user_creation.cy.ts on lines 51..55
Category
Status