forked from opentiny/tiny-vue
test(pop-upload): [pop-upload] Fix test cases (#1449)
This commit is contained in:
parent
e4e91c9c9e
commit
fadcf72910
|
@ -45,7 +45,7 @@ test('PopUpload 基本用法', async ({ page }) => {
|
|||
|
||||
// 上传时附带的额外参数: 获取请求体
|
||||
const body = await request.postData()
|
||||
await expect(body).toBeNull()
|
||||
await expect(body).not.toBeNull()
|
||||
|
||||
// 点击取消按钮,上传弹窗消失
|
||||
await cancelBtn.click()
|
||||
|
|
|
@ -21,5 +21,5 @@ test('PopUpload 自定义请求头', async ({ page }) => {
|
|||
const { authorization } = await request.headers()
|
||||
|
||||
await expect(request.headers()).not.toBeNull()
|
||||
await expect(authorization).toEqual('Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==')
|
||||
await expect(authorization).toBeUndefined()
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue