Skip to content

Commit

Permalink
Stabilize visual regression tests (#3253)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Feb 27, 2024
1 parent 37a1cff commit 84946ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/visual/components/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ test('building layouts', async ({ page, argosScreenshot }) => {
await editorModel.dragNewComponentToCanvas('FullWidth');

await expect(editorModel.appCanvas.getByTestId('node-hud-tag')).toBeVisible();
await expect(page.getByLabel('All changes saved!')).toBeVisible();
await argosScreenshot('building-layout-1');

const firstFullWidthBoundingBox = await getNthFullWidthBoundingBox(0);
Expand All @@ -68,6 +69,7 @@ test('building layouts', async ({ page, argosScreenshot }) => {
);

await expect(editorModel.appCanvas.getByTestId('node-hud-tag')).toBeVisible();
await expect(page.getByLabel('All changes saved!')).toBeVisible();
await argosScreenshot('building-layout-2');

const secondFullWidthBoundingBox = await getNthFullWidthBoundingBox(1);
Expand All @@ -82,6 +84,7 @@ test('building layouts', async ({ page, argosScreenshot }) => {
);

await expect(editorModel.appCanvas.getByTestId('node-hud-tag')).toBeVisible();
await expect(page.getByLabel('All changes saved!')).toBeVisible();
await argosScreenshot('building-layout-3');
});

Expand Down

0 comments on commit 84946ea

Please sign in to comment.