Skip to content

Commit

Permalink
test: test on firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfez committed Jan 26, 2024
1 parent 30479e6 commit e80a8cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 3 additions & 6 deletions apps/frontend/src/pages/Build/BuildDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const BaseScreenshot = ({ diff }: { diff: Diff }) => {
}
>
<img
className={clsx(contained && "max-h-full mx-auto")}
className={clsx("mx-auto", contained && "max-h-full")}
alt="Baseline screenshot"
{...getImgAttributes(diff.baseScreenshot!)}
/>
Expand Down Expand Up @@ -228,9 +228,8 @@ const BaseScreenshot = ({ diff }: { diff: Diff }) => {
/>
<img
className={clsx(
"absolute top-0",
"absolute top-0 left-0 right-0 mx-auto",
contained && "max-h-full",
"left-0 right-0 mx-auto",
)}
alt="Baseline screenshot"
{...getImgAttributes(diff.baseScreenshot!)}
Expand Down Expand Up @@ -325,11 +324,9 @@ const CompareScreenshot = ({ diff }: { diff: Diff }) => {
>
<img
className={clsx(
"absolute",
"absolute left-0 right-0 mx-auto",
visible && "opacity-disabled",
// Firefox fixes
contained && "max-h-full",
"left-0 right-0 mx-auto",
)}
{...getImgAttributes(diff.compareScreenshot!)}
/>
Expand Down
6 changes: 6 additions & 0 deletions playwright.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ const config = {
...devices["Desktop Chrome"],
},
},
{
name: "firefox",
use: {
...devices["Desktop Firefox"],
},
},
],

/* Folder for test artifacts such as screenshots, videos, traces, etc. */
Expand Down

0 comments on commit e80a8cf

Please sign in to comment.