描述
Is your feature request related to a problem? Please describe.
We are currently migrating from E2E tests to Acceptance tests, however, some of the E2E tests are still not covered by Acceptance tests. So, we need to write acceptance tests covering uncovered E2E tests and delete the corresponding E2E test.
Acceptance test(s) for "TM.3. Create, delete and edit stories and chapters" (e.g. Save chapters with mobile-supported explorations, Edit and preview a chapter) need to be created or updated to cover the features currently covered by E2E test "topicAndStoryEditor".
Describe the solution (or solutions) you'd like
Write or update the acceptance test(s) for TM.3 (Create, delete and edit stories and chapters) to cover the scenarios in topicAndStoryEditor.js, and delete the existing E2E test (wipeout).
Steps to follow:
- Update the existing acceptance test for TM.3:
core/tests/puppeteer-acceptance-tests/specs/topic-manager/create-delete-and-edit-the-stories-and-chapters.spec.ts(test-suite name in acceptance.json:topic-manager/create-delete-and-edit-the-stories-and-chapters). - Write/add the new steps based on TM.3. Create, delete and edit stories and chapters from CUJ v3 Sheet (Internal).
- No new entry in acceptance.json is needed (the test-suite is already registered).
- Extend the spec to cover the missing scenarios from topicAndStoryEditor.js (e.g. same exploration for two chapters → warning, reorder chapters, prerequisite/acquired skill validation, delete prerequisite and acquired skill) as needed.
- Run newly created/updated test-suite locally and ensure it passes.
- Push the code to your repo-fork.
- Stress test the new test-suite to check for flakes. (In your Oppia repo fork, go to Actions > Stress Test Acceptance Test > Run Workflow > branch: <YOUR_FEATURE_BRANCH_NAME>, runs: <ATLEAST_20>, test-suite: <TEST_SUITE_NAME_USED_IN_ACCEPTANCE.JSON>.)
- Ensure that all jobs passes in the above workflow run.
- Remove E2E test, topicAndStoryEditor.js.
- Open a PR :)
Other References:
puppeteer-acceptance-tests is the base folder for acceptance tests. Acceptance tests: https://github.com/oppia/oppia/wiki/Acceptance-Tests
Describe alternatives you've considered and rejected
No response
Additional context
No response