Skip to content

Commit 29102f2

Browse files
committed
test: normalize tailwind v4 e2e output
1 parent 04d10f0 commit 29102f2

16 files changed

Lines changed: 429 additions & 57 deletions

e2e/__snapshots__/apps-generator-mode/compare/report.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3501,7 +3501,7 @@
35013501
"hasRawArbitrarySelector": false
35023502
},
35033503
"generator": {
3504-
"bytes": 502633,
3504+
"bytes": 502630,
35053505
"selectors": [
35063506
".-m-_b20px_B",
35073507
".-mt-2",
@@ -6496,7 +6496,7 @@
64966496
"hasWeappEscapedArbitrarySelector": true,
64976497
"hasRawArbitrarySelector": false
64986498
},
6499-
"deltaBytes": 100714,
6499+
"deltaBytes": 100711,
65006500
"generatorBytesRatio": 1.2506,
65016501
"sharedSelectors": [
65026502
".-m-_b20px_B",
@@ -7580,7 +7580,7 @@
75807580
"hasRawArbitrarySelector": false
75817581
},
75827582
"generator": {
7583-
"bytes": 65762,
7583+
"bytes": 65747,
75847584
"selectors": [
75857585
".-m-_b20px_B",
75867586
".-mt-2",
@@ -7733,8 +7733,8 @@
77337733
"hasWeappEscapedArbitrarySelector": true,
77347734
"hasRawArbitrarySelector": false
77357735
},
7736-
"deltaBytes": 25249,
7737-
"generatorBytesRatio": 1.6232,
7736+
"deltaBytes": 25234,
7737+
"generatorBytesRatio": 1.6229,
77387738
"sharedSelectors": [
77397739
".-m-_b20px_B",
77407740
".-mt-2",
@@ -7775,7 +7775,7 @@
77757775
],
77767776
"status": "passed",
77777777
"legacy": {
7778-
"bytes": 349563,
7778+
"bytes": 349505,
77797779
"selectors": [
77807780
"._bchunkhash_c8_B",
77817781
"._bhash_c8_B",
@@ -12102,8 +12102,8 @@
1210212102
"hasWeappEscapedArbitrarySelector": true,
1210312103
"hasRawArbitrarySelector": false
1210412104
},
12105-
"deltaBytes": 15875,
12106-
"generatorBytesRatio": 1.0454,
12105+
"deltaBytes": 15933,
12106+
"generatorBytesRatio": 1.0456,
1210712107
"sharedSelectors": [
1210812108
"._bchunkhash_c8_B",
1210912109
"._bhash_c8_B",
@@ -12178,7 +12178,7 @@
1217812178
"hasRawArbitrarySelector": false
1217912179
},
1218012180
"generator": {
12181-
"bytes": 4701,
12181+
"bytes": 4698,
1218212182
"selectors": [
1218312183
".before_ccontent-_b_q11111_q_B:before",
1218412184
".before_ccontent-_b_q222_q_B:before",
@@ -12231,8 +12231,8 @@
1223112231
"hasWeappEscapedArbitrarySelector": true,
1223212232
"hasRawArbitrarySelector": false
1223312233
},
12234-
"deltaBytes": 171,
12235-
"generatorBytesRatio": 1.0377,
12234+
"deltaBytes": 168,
12235+
"generatorBytesRatio": 1.0371,
1223612236
"sharedSelectors": [
1223712237
".before_ccontent-_b_q11111_q_B:before",
1223812238
".before_ccontent-_b_q222_q_B:before",
@@ -13000,7 +13000,7 @@
1300013000
"hasRawArbitrarySelector": false
1300113001
},
1300213002
"generator": {
13003-
"bytes": 123826,
13003+
"bytes": 123820,
1300413004
"selectors": [
1300513005
".-m-_b20px_B",
1300613006
".-mt-2",
@@ -13306,8 +13306,8 @@
1330613306
"hasWeappEscapedArbitrarySelector": true,
1330713307
"hasRawArbitrarySelector": false
1330813308
},
13309-
"deltaBytes": 7998,
13310-
"generatorBytesRatio": 1.0691,
13309+
"deltaBytes": 7992,
13310+
"generatorBytesRatio": 1.069,
1331113311
"sharedSelectors": [
1331213312
".-m-_b20px_B",
1331313313
".-mt-2",
@@ -13346,7 +13346,7 @@
1334613346
],
1334713347
"status": "passed",
1334813348
"legacy": {
13349-
"bytes": 6578,
13349+
"bytes": 6575,
1335013350
"selectors": [
1335113351
".bg-_b_hfff_B",
1335213352
".bg-_blength_c100_v_100_v_B",
@@ -13399,7 +13399,7 @@
1339913399
"hasRawArbitrarySelector": false
1340013400
},
1340113401
"generator": {
13402-
"bytes": 6496,
13402+
"bytes": 6493,
1340313403
"selectors": [
1340413404
".bg-_b_hfff_B",
1340513405
".bg-_blength_c100_v_100_v_B",
@@ -16406,7 +16406,7 @@
1640616406
"hasRawArbitrarySelector": false
1640716407
},
1640816408
"generator": {
16409-
"bytes": 199204,
16409+
"bytes": 199192,
1641016410
"selectors": [
1641116411
".after_ccontent-_b_au_x4f60_u_x597d_u_x554a_u_xff0c_u_x6211_u_x8fd9_u_x662f_u_x4e2d_u_x6587_u_x5b57_u_x7b26_u_x4e32__a_B:after",
1641216412
".after_ccontent-_b_qu_x4f60_u_x597d_u_x554a_u_xff0c_u_x6211_u_x5f88_u_x65e0_u_x804a__q_B:after",
@@ -19295,8 +19295,8 @@
1929519295
"hasWeappEscapedArbitrarySelector": true,
1929619296
"hasRawArbitrarySelector": false
1929719297
},
19298-
"deltaBytes": 9320,
19299-
"generatorBytesRatio": 1.0491,
19298+
"deltaBytes": 9308,
19299+
"generatorBytesRatio": 1.049,
1930019300
"sharedSelectors": [
1930119301
".after_ccontent-_b_au_x4f60_u_x597d_u_x554a_u_xff0c_u_x6211_u_x8fd9_u_x662f_u_x4e2d_u_x6587_u_x5b57_u_x7b26_u_x4e32__a_B:after",
1930219302
".after_ccontent-_b_qu_x4f60_u_x597d_u_x554a_u_xff0c_u_x6211_u_x5f88_u_x65e0_u_x804a__q_B:after",
@@ -19338,7 +19338,7 @@
1933819338
],
1933919339
"status": "passed",
1934019340
"legacy": {
19341-
"bytes": 16858,
19341+
"bytes": 16857,
1934219342
"selectors": [
1934319343
".-m-_b20px_B",
1934419344
".-mt-2",
@@ -19457,7 +19457,7 @@
1945719457
"hasRawArbitrarySelector": false
1945819458
},
1945919459
"generator": {
19460-
"bytes": 16902,
19460+
"bytes": 16901,
1946119461
"selectors": [
1946219462
".-m-_b20px_B",
1946319463
".-mt-2",
@@ -19614,7 +19614,7 @@
1961419614
],
1961519615
"status": "passed",
1961619616
"legacy": {
19617-
"bytes": 19938,
19617+
"bytes": 19937,
1961819618
"selectors": [
1961919619
".-m-_b20px_B",
1962019620
".-mt-2",
@@ -19742,7 +19742,7 @@
1974219742
"hasRawArbitrarySelector": false
1974319743
},
1974419744
"generator": {
19745-
"bytes": 19982,
19745+
"bytes": 19981,
1974619746
"selectors": [
1974719747
".-m-_b20px_B",
1974819748
".-mt-2",

e2e/__snapshots__/apps-generator-mode/compare/report.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ This report is generated by `pnpm e2e:apps-generator`. It compares each demo app
88
| --- | --- | --- | --- | ---: | ---: | ---: | ---: | --- | --- | --- | --- |
99
| vite-native | apps | passed | `vite-native/dist/app.wxss` (+2) | 4940 | 7613 | +2673 | 1.5411 | none | no | no | no |
1010
| vite-native-ts | apps | passed | `vite-native-ts/dist/app.wxss` (+3) | 12391 | 24184 | +11793 | 1.9517 | none | no | no | no |
11-
| uni-app-vue3-vite | demo | passed | `uni-app-vue3-vite/dist/build/mp-weixin/app.wxss` (+10) | 401919 | 502633 | +100714 | 1.2506 | none | no | no | no |
11+
| uni-app-vue3-vite | demo | passed | `uni-app-vue3-vite/dist/build/mp-weixin/app.wxss` (+10) | 401919 | 502630 | +100711 | 1.2506 | none | no | no | no |
1212
| uni-app-tailwindcss-v4 | demo | passed | `uni-app-tailwindcss-v4/dist/build/mp-weixin/app.wxss` (+2) | 48552 | 49689 | +1137 | 1.0234 | none | no | no | no |
1313
| uni-app-tailwindcss-v5 | demo | passed | `uni-app-tailwindcss-v5/dist/build/mp-weixin/app.wxss` (+2) | 57474 | 54109 | -3365 | 0.9415 | none | no | no | no |
14-
| taro-app | demo | passed | `taro-app/dist/app.wxss` (+5) | 40513 | 65762 | +25249 | 1.6232 | none | no | no | no |
15-
| taro-webpack-tailwindcss-v4 | demo | passed | `taro-webpack-tailwindcss-v4/dist/app.wxss` (+1) | 349563 | 365438 | +15875 | 1.0454 | none | no | no | no |
16-
| taro-app-vite | demo | passed | `taro-app-vite/dist/app.wxss` (+2) | 4530 | 4701 | +171 | 1.0377 | none | no | no | no |
14+
| taro-app | demo | passed | `taro-app/dist/app.wxss` (+5) | 40513 | 65747 | +25234 | 1.6229 | none | no | no | no |
15+
| taro-webpack-tailwindcss-v4 | demo | passed | `taro-webpack-tailwindcss-v4/dist/app.wxss` (+1) | 349505 | 365438 | +15933 | 1.0456 | none | no | no | no |
16+
| taro-app-vite | demo | passed | `taro-app-vite/dist/app.wxss` (+2) | 4530 | 4698 | +168 | 1.0371 | none | no | no | no |
1717
| taro-vite-tailwindcss-v4 | demo | passed | `taro-vite-tailwindcss-v4/dist/app.wxss` (+2) | 1992 | 5534 | +3542 | 2.7781 | none | no | no | no |
1818
| taro-vite-tailwindcss-v5 | demo | passed | `taro-vite-tailwindcss-v5/dist/app.wxss` (+2) | 4055 | 23764 | +19709 | 5.8604 | none | no | no | no |
19-
| taro-vue3-app | demo | passed | `taro-vue3-app/dist/app.wxss` (+1) | 115828 | 123826 | +7998 | 1.0691 | none | no | no | no |
20-
| gulp-app | demo | passed | `gulp-app/dist/app.wxss` (+2) | 6578 | 6496 | -82 | 0.9875 | none | no | no | no |
21-
| mpx-app | demo | passed | `mpx-app/dist/wx/app.wxss` (+23) | 189884 | 199204 | +9320 | 1.0491 | none | no | no | no |
22-
| mpx-tailwindcss-v4 | demo | passed | `mpx-tailwindcss-v4/dist/wx/app.wxss` (+3) | 16858 | 16902 | +44 | 1.0026 | none | no | no | no |
23-
| mpx-tailwindcss-v5 | demo | passed | `mpx-tailwindcss-v5/dist/wx/app.wxss` (+3) | 19938 | 19982 | +44 | 1.0022 | none | no | no | no |
19+
| taro-vue3-app | demo | passed | `taro-vue3-app/dist/app.wxss` (+1) | 115828 | 123820 | +7992 | 1.069 | none | no | no | no |
20+
| gulp-app | demo | passed | `gulp-app/dist/app.wxss` (+2) | 6575 | 6493 | -82 | 0.9875 | none | no | no | no |
21+
| mpx-app | demo | passed | `mpx-app/dist/wx/app.wxss` (+23) | 189884 | 199192 | +9308 | 1.049 | none | no | no | no |
22+
| mpx-tailwindcss-v4 | demo | passed | `mpx-tailwindcss-v4/dist/wx/app.wxss` (+3) | 16857 | 16901 | +44 | 1.0026 | none | no | no | no |
23+
| mpx-tailwindcss-v5 | demo | passed | `mpx-tailwindcss-v5/dist/wx/app.wxss` (+3) | 19937 | 19981 | +44 | 1.0022 | none | no | no | no |
2424

2525
## Notes
2626

e2e/__snapshots__/apps-generator-mode/compare/report.zh-CN.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
| --- | --- | --- | --- | ---: | ---: | ---: | ---: | --- | --- | --- | --- |
99
| vite-native | apps | 通过 | `vite-native/dist/app.wxss` (+2) | 4940 | 7613 | +2673 | 1.5411 |||||
1010
| vite-native-ts | apps | 通过 | `vite-native-ts/dist/app.wxss` (+3) | 12391 | 24184 | +11793 | 1.9517 |||||
11-
| uni-app-vue3-vite | demo | 通过 | `uni-app-vue3-vite/dist/build/mp-weixin/app.wxss` (+10) | 401919 | 502633 | +100714 | 1.2506 |||||
11+
| uni-app-vue3-vite | demo | 通过 | `uni-app-vue3-vite/dist/build/mp-weixin/app.wxss` (+10) | 401919 | 502630 | +100711 | 1.2506 |||||
1212
| uni-app-tailwindcss-v4 | demo | 通过 | `uni-app-tailwindcss-v4/dist/build/mp-weixin/app.wxss` (+2) | 48552 | 49689 | +1137 | 1.0234 |||||
1313
| uni-app-tailwindcss-v5 | demo | 通过 | `uni-app-tailwindcss-v5/dist/build/mp-weixin/app.wxss` (+2) | 57474 | 54109 | -3365 | 0.9415 |||||
14-
| taro-app | demo | 通过 | `taro-app/dist/app.wxss` (+5) | 40513 | 65762 | +25249 | 1.6232 |||||
15-
| taro-webpack-tailwindcss-v4 | demo | 通过 | `taro-webpack-tailwindcss-v4/dist/app.wxss` (+1) | 349563 | 365438 | +15875 | 1.0454 |||||
16-
| taro-app-vite | demo | 通过 | `taro-app-vite/dist/app.wxss` (+2) | 4530 | 4701 | +171 | 1.0377 |||||
14+
| taro-app | demo | 通过 | `taro-app/dist/app.wxss` (+5) | 40513 | 65747 | +25234 | 1.6229 |||||
15+
| taro-webpack-tailwindcss-v4 | demo | 通过 | `taro-webpack-tailwindcss-v4/dist/app.wxss` (+1) | 349505 | 365438 | +15933 | 1.0456 |||||
16+
| taro-app-vite | demo | 通过 | `taro-app-vite/dist/app.wxss` (+2) | 4530 | 4698 | +168 | 1.0371 |||||
1717
| taro-vite-tailwindcss-v4 | demo | 通过 | `taro-vite-tailwindcss-v4/dist/app.wxss` (+2) | 1992 | 5534 | +3542 | 2.7781 |||||
1818
| taro-vite-tailwindcss-v5 | demo | 通过 | `taro-vite-tailwindcss-v5/dist/app.wxss` (+2) | 4055 | 23764 | +19709 | 5.8604 |||||
19-
| taro-vue3-app | demo | 通过 | `taro-vue3-app/dist/app.wxss` (+1) | 115828 | 123826 | +7998 | 1.0691 |||||
20-
| gulp-app | demo | 通过 | `gulp-app/dist/app.wxss` (+2) | 6578 | 6496 | -82 | 0.9875 |||||
21-
| mpx-app | demo | 通过 | `mpx-app/dist/wx/app.wxss` (+23) | 189884 | 199204 | +9320 | 1.0491 |||||
22-
| mpx-tailwindcss-v4 | demo | 通过 | `mpx-tailwindcss-v4/dist/wx/app.wxss` (+3) | 16858 | 16902 | +44 | 1.0026 |||||
23-
| mpx-tailwindcss-v5 | demo | 通过 | `mpx-tailwindcss-v5/dist/wx/app.wxss` (+3) | 19938 | 19982 | +44 | 1.0022 |||||
19+
| taro-vue3-app | demo | 通过 | `taro-vue3-app/dist/app.wxss` (+1) | 115828 | 123820 | +7992 | 1.069 |||||
20+
| gulp-app | demo | 通过 | `gulp-app/dist/app.wxss` (+2) | 6575 | 6493 | -82 | 0.9875 |||||
21+
| mpx-app | demo | 通过 | `mpx-app/dist/wx/app.wxss` (+23) | 189884 | 199192 | +9308 | 1.049 |||||
22+
| mpx-tailwindcss-v4 | demo | 通过 | `mpx-tailwindcss-v4/dist/wx/app.wxss` (+3) | 16857 | 16901 | +44 | 1.0026 |||||
23+
| mpx-tailwindcss-v5 | demo | 通过 | `mpx-tailwindcss-v5/dist/wx/app.wxss` (+3) | 19937 | 19981 | +44 | 1.0022 |||||
2424

2525
## 说明
2626

e2e/__snapshots__/apps-generator-mode/css-output/gulp-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Generator CSS files: app.wxss, index.wxss, more.wxss
77

88
| Mode | Bytes | Selectors | @supports | :hover | Tailwind banner | Raw arbitrary selector | Weapp escaped arbitrary selector |
99
| --- | ---: | ---: | --- | --- | --- | --- | --- |
10-
| legacy | 6578 | 43 | false | false | false | false | true |
11-
| generator | 6496 | 47 | false | false | false | false | true |
10+
| legacy | 6575 | 43 | false | false | false | false | true |
11+
| generator | 6493 | 47 | false | false | false | false | true |
1212

1313
## Diff
1414

e2e/__snapshots__/apps-generator-mode/css-output/mpx-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Generator CSS files: app.wxss, styles/base.wxss, styles/components.wxss, styles/
88
| Mode | Bytes | Selectors | @supports | :hover | Tailwind banner | Raw arbitrary selector | Weapp escaped arbitrary selector |
99
| --- | ---: | ---: | --- | --- | --- | --- | --- |
1010
| legacy | 189884 | 2877 | false | false | false | false | true |
11-
| generator | 199204 | 2880 | false | false | false | false | true |
11+
| generator | 199192 | 2880 | false | false | false | false | true |
1212

1313
## Diff
1414

e2e/__snapshots__/apps-generator-mode/css-output/mpx-tailwindcss-v4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Generator CSS files: app.wxss, styles/app.wxss, app.wxss, index.wxss
77

88
| Mode | Bytes | Selectors | @supports | :hover | Tailwind banner | Raw arbitrary selector | Weapp escaped arbitrary selector |
99
| --- | ---: | ---: | --- | --- | --- | --- | --- |
10-
| legacy | 16858 | 109 | false | false | false | false | true |
11-
| generator | 16902 | 109 | false | false | false | false | true |
10+
| legacy | 16857 | 109 | false | false | false | false | true |
11+
| generator | 16901 | 109 | false | false | false | false | true |
1212

1313
## Diff
1414

e2e/__snapshots__/apps-generator-mode/css-output/mpx-tailwindcss-v5.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Generator CSS files: app.wxss, styles/app.wxss, app.wxss, index.wxss
77

88
| Mode | Bytes | Selectors | @supports | :hover | Tailwind banner | Raw arbitrary selector | Weapp escaped arbitrary selector |
99
| --- | ---: | ---: | --- | --- | --- | --- | --- |
10-
| legacy | 19938 | 118 | false | false | false | false | true |
11-
| generator | 19982 | 118 | false | false | false | false | true |
10+
| legacy | 19937 | 118 | false | false | false | false | true |
11+
| generator | 19981 | 118 | false | false | false | false | true |
1212

1313
## Diff
1414

e2e/__snapshots__/apps-generator-mode/css-output/taro-app-vite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Generator CSS files: app.wxss, app-origin.wxss, index.wxss
88
| Mode | Bytes | Selectors | @supports | :hover | Tailwind banner | Raw arbitrary selector | Weapp escaped arbitrary selector |
99
| --- | ---: | ---: | --- | --- | --- | --- | --- |
1010
| legacy | 4530 | 23 | false | false | false | false | true |
11-
| generator | 4701 | 44 | false | false | false | false | true |
11+
| generator | 4698 | 44 | false | false | false | false | true |
1212

1313
## Diff
1414

e2e/__snapshots__/apps-generator-mode/css-output/taro-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Generator CSS files: app.wxss, index.wxss, index.wxss, index.wxss, index.wxss, i
88
| Mode | Bytes | Selectors | @supports | :hover | Tailwind banner | Raw arbitrary selector | Weapp escaped arbitrary selector |
99
| --- | ---: | ---: | --- | --- | --- | --- | --- |
1010
| legacy | 40513 | 140 | false | false | false | false | true |
11-
| generator | 65762 | 144 | false | false | false | false | true |
11+
| generator | 65747 | 144 | false | false | false | false | true |
1212

1313
## Diff
1414

e2e/__snapshots__/apps-generator-mode/css-output/taro-vue3-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Generator CSS files: app.wxss, index.wxss
88
| Mode | Bytes | Selectors | @supports | :hover | Tailwind banner | Raw arbitrary selector | Weapp escaped arbitrary selector |
99
| --- | ---: | ---: | --- | --- | --- | --- | --- |
1010
| legacy | 115828 | 296 | false | false | false | false | true |
11-
| generator | 123826 | 297 | false | false | false | false | true |
11+
| generator | 123820 | 297 | false | false | false | false | true |
1212

1313
## Diff
1414

0 commit comments

Comments
 (0)