Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/pop-upload/basic-usage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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