Skip to content

test: add WXT test engineering - #11

Merged
jevin98 merged 4 commits into
mainfrom
codex/add-wxt-test-engineering
May 14, 2026
Merged

test: add WXT test engineering#11
jevin98 merged 4 commits into
mainfrom
codex/add-wxt-test-engineering

Conversation

@jevin98

Copy link
Copy Markdown
Owner

Summary

  • Add a Vitest test setup for the WXT/Vue extension, including WXT browser mocks, Vue SFC support, happy-dom, and coverage configuration.
  • Add unit tests for CSS diff helpers, style formatting, array header formatting, and the DevTools panel shell.
  • Add a Playwright smoke test that builds the Chrome extension, serves the build output locally, and verifies the built DevTools panel renders with mocked extension APIs.
  • Extract CSS diff/filter logic into a pure utility and harden style formatting/message sending edge cases.
  • Merge the latest main changes into this branch, preserving Tailwind v4 and _locales browser i18n updates.

Validation

  • pnpm test
  • pnpm compile
  • pnpm test:e2e
  • pnpm exec eslint .

Notes

  • gh CLI is not installed in this environment, so PR creation used the GitHub plugin connector after pushing the branch with local git.

@jevin98

Copy link
Copy Markdown
OwnerAuthor

@codex review

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:92b62328b3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment threadREADME.md
Comment on lines +83 to +85
## Testing

This project uses Vitest for unit/component tests and Playwright for a built-panel smoke test.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep localized READMEs in sync

The new Testing section is added only to README.md, while README.zh-CN.md still jumps from build/zip instructions directly to the tech stack. This violates the repository instruction in AGENTS.md that generated README changes must be present and synchronized across all language variants, so Chinese readers will not see the newly documented test commands or E2E behavior. I checked the only other README with find . -maxdepth 3 -iname '*readme*' -print.

Useful? React with 👍 / 👎.

@jevin98

Copy link
Copy Markdown
OwnerAuthor

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jevin98
jevin98 merged commit 63057ed into mainMay 14, 2026
@jevin98
jevin98 deleted the codex/add-wxt-test-engineering branch May 15, 2026 03:51
Sign up for freeto 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.

1 participant

@jevin98