Skip to content

Commit

Permalink
SWED-2339 dialog E2E screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenraphti committed May 14, 2024
1 parent ed70c6b commit 5081025
Show file tree
Hide file tree
Showing 41 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ test("visual regresion accordions", async ({ page, browserName }) => {
await expect(dialogButton).toBeVisible();
await expect(dialogButton).toHaveScreenshot(`${brand}-dialog-button.png`);
await dialogButton.click();
// wait for transition to end before taking screenshots
await page.waitForTimeout(500);
await expect(page.getByRole("dialog")).toHaveScreenshot(
`${brand}-dialog-modal.png`,
{ animations: "disabled" },
);
await expect(page.getByRole("dialog")).toHaveScreenshot(
`${brand}-dialog-modal-screen.png`,
);
await expect(page).toHaveScreenshot(`${brand}-dialog-backdrop.png`, {
animations: "disabled",
});
});
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
1 change: 1 addition & 0 deletions src/less/components/dialog.less
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ dialog {
padding: 1rem 1.5rem;
margin: 0;
display: flex;
gap: 1rem;
justify-content: flex-end;
border-radius: 0 0 20px 20px;

Expand Down

0 comments on commit 5081025

Please sign in to comment.