forked from opentiny/tiny-vue
fix(dialog-box): [dialog-box] modify smb theme of demo (#2069)
* fix(dialog-box): [dialog-box] modify smb theme of demo * fix: modify e2e test * fix(dialog-box): [dialog-box] modify smb theme of demo * fix(dialog-box): [dialog-box] modify smb theme of demo
This commit is contained in:
parent
e0ba1da568
commit
d3be75b85f
|
@ -16,7 +16,8 @@
|
|||
</tiny-form-item>
|
||||
</tiny-form>
|
||||
<template #footer>
|
||||
<tiny-button type="primary" @click="boxVisibility = false">确 定</tiny-button>
|
||||
<tiny-button @click="boxVisibility = false">取消</tiny-button>
|
||||
<tiny-button type="primary" @click="boxVisibility = false">确定</tiny-button>
|
||||
</template>
|
||||
</tiny-dialog-box>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@ test('弹出与关闭事件', async ({ page }) => {
|
|||
await page.getByRole('button', { name: '弹出与关闭事件' }).click()
|
||||
await expect(page.getByText('窗口弹出')).toBeVisible()
|
||||
await expect(page.getByText('窗口弹出动画完成')).toBeVisible()
|
||||
await dialogBox.getByRole('button', { name: '确 定' }).click()
|
||||
await dialogBox.getByRole('button', { name: '确定' }).click()
|
||||
await expect(page.getByText('窗口关闭')).toBeVisible()
|
||||
await expect(page.getByText('窗口关闭动画完成')).toBeVisible()
|
||||
})
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
</tiny-form-item>
|
||||
</tiny-form>
|
||||
<template #footer>
|
||||
<tiny-button type="primary" @click="boxVisibility = false">确 定</tiny-button>
|
||||
<tiny-button @click="boxVisibility = false">取消</tiny-button>
|
||||
<tiny-button type="primary" @click="boxVisibility = false">确定</tiny-button>
|
||||
</template>
|
||||
</tiny-dialog-box>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue