Skip to content

Commit

Permalink
Fix steps
Browse files Browse the repository at this point in the history
  • Loading branch information
apedroferreira committed Feb 8, 2024
1 parent a5f1510 commit dcf4855
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/visual/components/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ test('showing grid while resizing elements', async ({ page, argosScreenshot }) =
await page.mouse.move(
firstInputBoundingBox!.x + firstInputBoundingBox!.width - 5,
firstInputBoundingBox!.y + firstInputBoundingBox!.height / 2,
{ steps: 1 },
{ steps: 10 },
);

await page.mouse.down();

await page.mouse.move(
firstInputBoundingBox!.x + firstInputBoundingBox!.width / 2,
firstInputBoundingBox!.y + firstInputBoundingBox!.height / 2,
{ steps: 1 },
{ steps: 10 },
);

await argosScreenshot('resize-grid');
Expand Down Expand Up @@ -114,17 +114,17 @@ test('showing drag-and-drop previews', async ({ page, argosScreenshot }) => {
await argosScreenshot('drop-preview-left', screenshotConfig);

await page.mouse.move(...getDropPreviewTopCoordinates(inputBoundingBox!), {
steps: 1,
steps: 10,
});
await argosScreenshot('drop-preview-top', screenshotConfig);

await page.mouse.move(...getDropPreviewRightCoordinates(inputBoundingBox!), {
steps: 1,
steps: 10,
});
await argosScreenshot('drop-preview-right', screenshotConfig);

await page.mouse.move(...getDropPreviewBottomCoordinates(inputBoundingBox!), {
steps: 1,
steps: 10,
});
await argosScreenshot('drop-preview-bottom', screenshotConfig);

Expand All @@ -134,7 +134,7 @@ test('showing drag-and-drop previews', async ({ page, argosScreenshot }) => {
inputBoundingBox!.x + inputBoundingBox!.width / 2,
inputBoundingBox!.y - 12,
{
steps: 1,
steps: 10,
},
);
await argosScreenshot('drop-preview-outside-top', screenshotConfig);
Expand Down Expand Up @@ -167,7 +167,7 @@ test('showing drag-and-drop previews', async ({ page, argosScreenshot }) => {
containerDropAreaBoundingBox!.x + containerDropAreaBoundingBox!.width / 2,
containerDropAreaBoundingBox!.y + containerDropAreaBoundingBox!.height / 2,
{
steps: 1,
steps: 10,
},
);
await argosScreenshot('container-drop-preview-empty', screenshotConfig);
Expand All @@ -179,22 +179,22 @@ test('showing drag-and-drop previews', async ({ page, argosScreenshot }) => {
.boundingBox();

await page.mouse.move(...getDropPreviewLeftCoordinates(containerButtonBoundingBox!), {
steps: 1,
steps: 10,
});
await argosScreenshot('container-drop-preview-left', screenshotConfig);

await page.mouse.move(...getDropPreviewTopCoordinates(containerButtonBoundingBox!), {
steps: 1,
steps: 10,
});
await argosScreenshot('container-drop-preview-top', screenshotConfig);

await page.mouse.move(...getDropPreviewRightCoordinates(containerButtonBoundingBox!), {
steps: 1,
steps: 10,
});
await argosScreenshot('container-drop-preview-right', screenshotConfig);

await page.mouse.move(...getDropPreviewBottomCoordinates(containerButtonBoundingBox!), {
steps: 1,
steps: 10,
});
await argosScreenshot('container-drop-preview-bottom', screenshotConfig);
});

0 comments on commit dcf4855

Please sign in to comment.