test(pop-upload): [pop-upload] Fix test cases (#1449)

This commit is contained in:
chenxi-20 2024-03-01 16:29:57 +08:00 committed by GitHub
parent e4e91c9c9e
commit fadcf72910
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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()
})