File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
examples/sites/demos/pc/app/config-provider Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ test('测试自定义事件', async ({ page }) => {
4
4
page . on ( 'pageerror' , ( exception ) => expect ( exception ) . toBeNull ( ) )
5
5
await page . goto ( 'config-provider#base' )
6
6
7
- // 验证自定义方法
8
7
const demo = page . locator ( '#base' )
8
+ // 验证文字居中
9
+ await expect ( demo . locator ( '.tiny-alert' ) ) . toHaveCSS ( 'justify-content' , 'center' )
10
+
11
+ // 验证自定义方法
9
12
await demo . locator ( '.tiny-config-provider .tiny-alert > .tiny-alert__close' ) . click ( )
10
13
await page . waitForTimeout ( 500 )
11
14
await expect ( page . locator ( '.tiny-modal > .tiny-modal__box' ) . nth ( 1 ) ) . toHaveText ( '触发自定方法' )
12
15
13
- // 验证文字居中
14
- await expect ( demo . locator ( '.tiny-alert' ) ) . toHaveCSS ( 'text-align' , 'center' )
15
-
16
16
// 验证必填星号
17
17
await expect ( demo . locator ( '.tiny-form' ) ) . toBeVisible ( )
18
18
const beforeElement = await page . evaluate ( ( ) => {
You can’t perform that action at this time.
0 commit comments