Different image cropping

This commit is contained in:
Modestas Vaitkevičius
2024-12-02 18:54:06 +02:00
parent 36520a62f0
commit 8cae46c15d
3 changed files with 5 additions and 2 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

+5 -2
View File
@@ -2956,11 +2956,14 @@ export default {
},
'panels/navigation/customizing-user-menu': {
url: 'top-bar',
selector: '.fi-dropdown-panel',
selector: 'body',
viewport: {
width: 1080,
height: 640,
deviceScaleFactor: 3,
deviceScaleFactor: 0,
},
crop: (image) => {
return image.extract({ width: 1080, height: 540, left: 1080, top: 0 })
},
before: async (page) => {
await page.click('.fi-user-menu button')