Conduct tests/Resolve Bugs: E2E tests for the program inactive constraint
- Dominant language
- TypeScript
- Stars
- 29
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
**As a** *developer* **I want** *create E2E tests for the program inactive constraint* **So That** *for better coverage*
**Additional Context**
- Create E2E test cases for the specific areas listed below which was changed as part of the program made inactive by the institution
- Test cases already created for Create application offering change request "Should throw program is not active error when trying to submit an application offering request for an inactive program." -> sources/packages/backend/apps/api/src/route-controllers/application-offering-change-request/_tests_/e2e/application-offering-change-request.institutions.controller.createApplicationOfferingChangeRequest.e2e-spec.ts
**Acceptance Criteria**
E2E Test cases for the below criteria should be created
Submit Application:
- [ ] Student Should not submit an application when the student tries to submit an application for the offering inactive program.
- [ ] Student Should be able to view the application program field populated in the submitted application when the student tries to view the application
PIR Application:
- [ ] Institution user should not be able to load the inactive program when the program is to be selected for the PIR application submitted by the student.
- [ ] Institution user should not be able to submit the PIR application by selecting a program and offering when the program is in inactive.
Application offering change:
- [ ] Institution user should not be able to submit an edit offering, either basic or offering edit completely(no application is submitted for the offering), when the program for the offering is inactive.
- [ ] Institution user should not be able to submit a request a change for an offering for a changed program when the program for the changed offering program is inactive.
- [ ] Institution user when trying to upload the bulk offering should be blocked when the program for the uploaded offering is inactive.
- [ ] Ministry user approving a offering change request submitted by the Institution user should not be blocked when the program of the offering is inactive.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.