[Feature Request]: Migrate acceptance tests for practice-question-submitter from Puppeteer to Playwright
#26,836 opened on 2026/07/19
Repository metrics
- Stars
- (5,292 個のスター)
- PR merge metrics
- (平均マージ 20d 19h) (30d で 71 merged PRs)
説明
Is your feature request related to a problem? Please describe.
The practice-question-submitter acceptance test specs still run on Puppeteer. As part of the broader migration (https://github.com/oppia/oppia/issues/24715), these need to move to Playwright so we can retire Puppeteer entirely from the acceptance test suite.
Describe the solution (or solutions) you'd like
Migrate the following specs from core/tests/puppeteer-acceptance-tests/specs/practice-question-submitter to core/tests/playwright-acceptance-tests/specs/practice-question-submitter, following our existing Playwright conventions:
- submit-practice-questions-with-different-interactions-and-difficulties.spec.ts
- submit-practice-questions-for-review-and-check-thier-status.spec.ts
- check-contribution-stats-download-certificate-and-check-badges-earned.spec.ts
At a high level, this involves:
- Removing the old spec from
puppeteer-acceptance-tests/specs/practice-question-submitterand adding a rewritten version toplaywright-acceptance-tests/specs/practice-question-submitter, in Playwright syntax/conventions. - Updating the
frameworkfield for each suite inacceptance.jsonto"playwright". - Adding any missing utility methods to
playwright-acceptance-tests/utilities. - Verifying tests pass locally, both desktop and mobile:
- Desktop:
python -m scripts.run_acceptance_tests --suite={suite_name} - Mobile:
python -m scripts.run_acceptance_tests --suite={suite_name} --mobile - Videos for both runs will be generated in the
oppia_full_stack_test_video_recordingsfolder (sibling directory to the Oppia root) - Traces for both runs will also be generated in the
oppia_full_stack_test_playwright_resultsfolder (sibling directory to the Oppia root)
- Desktop:
- Running the stress test on your fork, on the branch you want to merge, using the
stress_test_acceptance_test.ymlworkflow, for 200 total runs (100 desktop + 100 mobile), to rule out flakiness before requesting assignment. - Share the stress test link and either the trace or video in the issue thread.
After reviewing the stress test run and video/trace recordings we can assign you to the particular spec file.
Describe alternatives you've considered and rejected
No response
Additional context
No response