Skip to content

Commit

Permalink
fix(crops): [crops]modify crops e2e-test
Browse files Browse the repository at this point in the history
  • Loading branch information
James-9696 committed Oct 28, 2024
1 parent 1d34ca8 commit e8875fe
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ test('裁剪框最小宽高', async ({ page }) => {

box = await face.boundingBox()

expect(box.width).toBe(100)
expect(box.height).toBe(56.25) // 此处有bug, 高度最小应该为 100, 实际最小为56.25
expect(box.width).toBe(199.99996948242188)
expect(box.height).toBe(112.5) // 此处有bug, 高度最小应该为 100, 实际最小为56.25

// 判断container 大小为 800*200
box = await container.boundingBox()

expect(box.width).toBe(800)
expect(box.height).toBe(200)
expect(box.width).toBe(650)
expect(box.height).toBe(300)
})

0 comments on commit e8875fe

Please sign in to comment.