Skip to content

Commit e834e65

Browse files
committed
test: grids half-screen-dialog icon loading msg navigation-bar searchbar slideview tabbar toptips uploader
1 parent 7384ad3 commit e834e65

File tree

22 files changed

+1708
-67
lines changed

22 files changed

+1708
-67
lines changed
Lines changed: 162 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,194 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`checkbox-group & checkbox basic checkbox 1`] = `
4-
<mp-cells
5-
title="单选列表项"
6-
>
7-
<mp-checkbox-group
8-
class="radio-group"
9-
bind:change="radioChange"
4+
Array [
5+
<mp-cells
6+
title="单选列表项"
107
>
11-
<radio-group
12-
class=""
13-
bind:change="checkedChange"
8+
<mp-checkbox-group
9+
class="radio-group"
10+
bind:change="radioChange"
1411
>
15-
<mp-checkbox
16-
class="test-radio"
12+
<radio-group
13+
class=""
14+
bind:change="checkedChange"
1715
>
18-
<mp-cell
19-
bind:tap="checkedChange"
16+
<mp-checkbox
17+
class="test-radio"
2018
>
21-
<wx-view
22-
class="weui-cell weui-check__label ^weui-cell_radio "
23-
hoverClass=""
24-
bind:tap="navigateTo"
19+
<mp-cell
20+
bind:tap="checkedChange"
2521
>
2622
<wx-view
27-
class="weui-cell__bd "
23+
class="weui-cell weui-check__label ^weui-cell_radio "
24+
hoverClass=""
25+
bind:tap="navigateTo"
2826
>
29-
<wx-view>
30-
cell standard
27+
<wx-view
28+
class="weui-cell__bd "
29+
>
30+
<wx-view>
31+
cell standard
32+
</wx-view>
33+
</wx-view>
34+
<wx-view
35+
class="weui-cell__ft "
36+
>
37+
<wx-view
38+
slot="footer"
39+
>
40+
<wx-radio
41+
checked=""
42+
class="weui-check"
43+
color=""
44+
disabled=""
45+
value="0"
46+
/>
47+
<wx-icon
48+
class="weui-icon-checked"
49+
/>
50+
</wx-view>
3151
</wx-view>
3252
</wx-view>
53+
</mp-cell>
54+
</mp-checkbox>
55+
<mp-checkbox
56+
class="test-radio"
57+
>
58+
<mp-cell
59+
bind:tap="checkedChange"
60+
>
3361
<wx-view
34-
class="weui-cell__ft "
62+
class="weui-cell weui-check__label weui-cell_wxss ^weui-cell_radio "
63+
hoverClass=""
64+
bind:tap="navigateTo"
3565
>
3666
<wx-view
37-
slot="footer"
67+
class="weui-cell__bd "
3868
>
39-
<wx-radio
40-
checked=""
41-
class="weui-check"
42-
color=""
43-
disabled=""
44-
value="0"
45-
/>
46-
<wx-icon
47-
class="weui-icon-checked"
48-
/>
69+
<wx-view>
70+
cell standard
71+
</wx-view>
72+
</wx-view>
73+
<wx-view
74+
class="weui-cell__ft "
75+
>
76+
<wx-view
77+
slot="footer"
78+
>
79+
<wx-radio
80+
checked=""
81+
class="weui-check"
82+
color=""
83+
disabled=""
84+
value="1"
85+
/>
86+
<wx-icon
87+
class="weui-icon-checked"
88+
/>
89+
</wx-view>
4990
</wx-view>
5091
</wx-view>
51-
</wx-view>
52-
</mp-cell>
53-
</mp-checkbox>
54-
<mp-checkbox
55-
class="test-radio"
92+
</mp-cell>
93+
</mp-checkbox>
94+
</radio-group>
95+
</mp-checkbox-group>
96+
</mp-cells>,
97+
<mp-cells
98+
title="复选列表项"
99+
>
100+
<mp-checkbox-group
101+
class="checkbox-group"
102+
bind:change="checkboxChange"
103+
>
104+
<checkbox-group
105+
class=""
106+
bind:change="checkedChange"
56107
>
57-
<mp-cell
58-
bind:tap="checkedChange"
108+
<mp-checkbox
109+
class="test-checkbox"
59110
>
60-
<wx-view
61-
class="weui-cell weui-check__label weui-cell_wxss ^weui-cell_radio "
62-
hoverClass=""
63-
bind:tap="navigateTo"
111+
<mp-cell
112+
bind:tap="checkedChange"
64113
>
65114
<wx-view
66-
class="weui-cell__bd "
115+
class="weui-cell weui-check__label ^weui-cell_checkbox "
116+
hoverClass=""
117+
bind:tap="navigateTo"
67118
>
68-
<wx-view>
69-
cell standard
119+
<wx-view
120+
class="weui-cell__hd "
121+
>
122+
<wx-view
123+
slot="icon"
124+
>
125+
<wx-checkbox
126+
checked=""
127+
class="weui-check"
128+
color=""
129+
disabled=""
130+
value="0"
131+
/>
132+
<wx-icon
133+
class="weui-icon-checked"
134+
/>
135+
</wx-view>
136+
</wx-view>
137+
<wx-view
138+
class="weui-cell__bd "
139+
>
140+
<wx-view>
141+
standard is dealt for u.
142+
</wx-view>
70143
</wx-view>
71144
</wx-view>
145+
</mp-cell>
146+
</mp-checkbox>
147+
<mp-checkbox
148+
class="test-checkbox"
149+
>
150+
<mp-cell
151+
bind:tap="checkedChange"
152+
>
72153
<wx-view
73-
class="weui-cell__ft "
154+
class="weui-cell weui-check__label weui-cell_wxss ^weui-cell_checkbox "
155+
hoverClass=""
156+
bind:tap="navigateTo"
74157
>
75158
<wx-view
76-
slot="footer"
159+
class="weui-cell__hd "
160+
>
161+
<wx-view
162+
slot="icon"
163+
>
164+
<wx-checkbox
165+
checked=""
166+
class="weui-check"
167+
color=""
168+
disabled=""
169+
value="1"
170+
/>
171+
<wx-icon
172+
class="weui-icon-checked"
173+
/>
174+
</wx-view>
175+
</wx-view>
176+
<wx-view
177+
class="weui-cell__bd "
77178
>
78-
<wx-radio
79-
checked=""
80-
class="weui-check"
81-
color=""
82-
disabled=""
83-
value="1"
84-
/>
85-
<wx-icon
86-
class="weui-icon-checked"
87-
/>
179+
<wx-view>
180+
standard is dealicient for u.
181+
</wx-view>
88182
</wx-view>
89183
</wx-view>
90-
</wx-view>
91-
</mp-cell>
92-
</mp-checkbox>
93-
</radio-group>
94-
</mp-checkbox-group>
95-
</mp-cells>
184+
</mp-cell>
185+
</mp-checkbox>
186+
</checkbox-group>
187+
<radio-group
188+
class=""
189+
bind:change="checkedChange"
190+
/>
191+
</mp-checkbox-group>
192+
</mp-cells>,
193+
]
96194
`;

src/form-page/__test__/form-page.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import path from 'path'
22
import simulate from 'miniprogram-simulate'
33

44
describe('form-page', () => {
5-
const formPage = simulate.load(path.resolve(__dirname, '../form-page'))
6-
75
const id = simulate.load({
86
compiler: 'official',
97
rootPath: __dirname,
@@ -16,7 +14,10 @@ describe('form-page', () => {
1614
</mp-form-page>
1715
`,
1816
usingComponents: {
19-
'mp-form-page': formPage
17+
'mp-form-page': simulate.load(path.resolve(__dirname, '../form-page')),
18+
'mp-cells': simulate.load(path.resolve(__dirname, '../../cells/cells')),
19+
'mp-cell': simulate.load(path.resolve(__dirname, '../../cell/cell')),
20+
'mp-checkbox': simulate.load(path.resolve(__dirname, '../../checkbox/checkbox'))
2021
}
2122
})
2223

0 commit comments

Comments
 (0)