Repository navigation
fix: Refactor Playwright E2E tests for sequential execution and reliability - #2219
Merged
Merged
Conversation
NoumaanAhamed
marked this pull request as ready for review
November 25, 2025 06:31
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| expect(await activity.getPhotoSize()).toContain(expectedMediumSize); | ||
| expect(await activity.getPhotoSize()).toMatch(regex); | ||
|
|
||
| //validting large Photo size |
There was a problem hiding this comment.
Typo in comment: "validting" should be "validating"
Suggested change
| //validting large Photo size | |
| //validating large Photo size |
KMchaudhary
approved these changes
Dec 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR comprehensively refactors the Playwright E2E test suite to ensure stability, reliability, and consistent CI execution.
Changes Made
1. Sequential Test Execution (Commit:
da0108ec2)File:
playwright.config.tsworkers: 3→workers: 1to run tests sequentially2. Cleanup Test Suite (Commits:
164019173,2315ed238)File:
specs/cleanup.spec.js3. Test Refinements and Fixes (Commit:
176c01332)Files: Multiple test specs
BuddyPress Tests (
01_integrated-features.spec.js):Display Tests (
01_single-media-view.spec.js):User Terms (
02_user_terms.spec.js):Test Utils (
activity.js):Prerequisite and Media(
prerequisite.spec.jsandmedia_size.spec.js)4. CI Integration (Commit:
18dbae622)File:
package.jsontest-e2e:playwright:prodscript for CI environmentsTest Coverage
All tests have been validated and pass consistently:
Total: 21 E2E tests passing consistently
Breaking Changes
None. All changes are backward compatible.
Testing
Local Testing
cd tests/wp-e2e-playwright npm install npm run test-e2e:playwright:prodBenefits for Dependabot
This fix directly enables merging of Dependabot PRs:
Related Issues
Fixes #2220
Screenshots/Recordings
Before: Parallel Execution with Conflicts
After: Sequential Execution with Cleanup