Skip to content

test(e2e): 覆盖 Taro H5 CSS 优先级回归#1015

Merged
sonofmagic merged 3 commits into
mainfrom
codex/issue-850-verification
Jul 24, 2026
Merged

test(e2e): 覆盖 Taro H5 CSS 优先级回归#1015
sonofmagic merged 3 commits into
mainfrom
codex/issue-850-verification

Conversation

@sonofmagic

@sonofmagic sonofmagic commented Jul 24, 2026

Copy link
Copy Markdown
Owner

变更说明

  • 在 Taro Vite React 与 Webpack React demo 中设置相反的 NutUI/Tailwind import 顺序
  • 验证 Tailwind 先、NutUI 后时,普通 rounded-full 由 NutUI 按 source order 胜出
  • 验证 NutUI 先、Tailwind 后时,普通 rounded-full 由 Tailwind 按 source order 胜出
  • 验证 rounded-full! 在两种顺序下均通过 !important 稳定覆盖 NutUI
  • 增加生产 H5 CSS 的 import 顺序、未分层规则断言与 Playwright computed-style 浏览器断言
  • 更新 Taro Vite/Webpack 的传统 static 快照,以及 generator weapp、web、web-compact 全局报告基线
  • 允许专用分包回归 demo subpackage-uni-app-vite-tailwindcss-v4 启用 styleInjector,同时保持其他普通 demo 的禁止规则不变

本地验证

  • pnpm exec vitest run --bail=1 -c ./e2e/vitest.e2e.config.ts e2e/taro-h5-build-smoke.test.ts -t "taro (vite|webpack) react Tailwind v4"
  • pnpm exec vitest run --bail=1 -c ./e2e/vitest.e2e.config.ts e2e/taro-web-demo-hmr.test.ts -t "taro (vite|webpack) react Tailwind v4"
  • E2E_SKIP_OPEN_AUTOMATOR=1 pnpm exec vitest run -c ./e2e/vitest.e2e.config.ts e2e/taro-vite-react-tailwindcss-v4.test.ts e2e/taro-webpack-react-tailwindcss-v4.test.ts
  • pnpm e2e:apps-generator
  • pnpm exec vitest run --project=weapp-tailwindcss packages/weapp-tailwindcss/test/ci/workflows.test.ts
  • git diff --check

发布影响

  • 不修改发布包行为,无需 changeset
  • 不涉及模板或脚手架,无需联动 create-weapp-vite

Refs #850

@changeset-bot

changeset-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d7c6eaf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sonofmagic
sonofmagic force-pushed the codex/issue-850-verification branch from 51460d4 to d7c6eaf Compare July 24, 2026 10:15
@sonofmagic
sonofmagic merged commit 4951195 into main Jul 24, 2026
98 of 100 checks passed
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.

1 participant