Skip to content

test(e2e): start the activation test from either plugin state - #399

Open
justlevine wants to merge 1 commit into
mainfrom
test/flaky-activation
Open

justlevine wants to merge 1 commit into
mainfrom
test/flaky-activation

Conversation

@justlevine

@justlevine justlevine commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

What

Fixes the flaky activation test.

Why

Depending on the state of wp-env, the plugin may be activated or deactivated.

Related Issue(s):

How

  • Finds the links with a[href*="action=activate"] and a[href*="action=deactivate"], and deactivates the plugin first when the Deactivate link is showing. The spec now matches OneDesign's apart from the plugin slug.

AI Disclosure

Backported with Opus 5.5

Testing Instructions

Screenshots

Additional Info

Checklist

  • I have read the Contribution Guidelines.
  • I have read the Development Guidelines.
  • I have added necessary tests to cover my changes.
  • I have updated the project documentation as needed.
  • My code has detailed inline documentation.
  • My code is tested to the best of my abilities.
  • My code passes all lints, tests, and checks.
Open WordPress Playground Preview

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.21%. Comparing base (19f4d4d) to head (6134fe7).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #399      +/-   ##
============================================
- Coverage     90.78%   86.21%   -4.58%     
============================================
  Files            51       14      -37     
  Lines          3333      624    -2709     
  Branches        182      182              
============================================
- Hits           3026      538    -2488     
+ Misses          255       34     -221     
  Partials         52       52              
Flag Coverage Δ
unit ?
vitest 86.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 37 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@justlevine
justlevine requested a review from Kallyan01 November 20, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants