diff --git a/examples/sites/demos/pc/app/pop-upload/basic-usage.spec.ts b/examples/sites/demos/pc/app/pop-upload/basic-usage.spec.ts index 95740a961a..b1a572be9b 100644 --- a/examples/sites/demos/pc/app/pop-upload/basic-usage.spec.ts +++ b/examples/sites/demos/pc/app/pop-upload/basic-usage.spec.ts @@ -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() diff --git a/examples/sites/demos/pc/app/pop-upload/custom-request-headers.spec.ts b/examples/sites/demos/pc/app/pop-upload/custom-request-headers.spec.ts index 2f3866c4bb..cada01397b 100644 --- a/examples/sites/demos/pc/app/pop-upload/custom-request-headers.spec.ts +++ b/examples/sites/demos/pc/app/pop-upload/custom-request-headers.spec.ts @@ -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() })