test: fix for canvas border on safari #794
Annotations
3 errors and 2 warnings
src/components/screen/screen.spec.tsx > <Screen /> > renders with default mobile position and size:
gbajs3/src/components/screen/screen.spec.tsx#L79
Error: Snapshot `<Screen /> > renders with default mobile position and size 1` mismatched
- Expected
+ Received
@@ -18,10 +18,23 @@
overflow: visible;
width: 100dvw;
height: calc(100dvw * 2 / 3);
}
+ .c0::after {
+ content: '';
+ position: absolute;
+ top: -2px;
+ left: -2px;
+ right: -2px;
+ bottom: -2px;
+ margin: 2px;
+ pointer-events: none;
+ border: 2px dashed #1c76fd;
+ visibility: hidden;
+ }
+
@media only screen and (min-width: 600px) {
.c0 {
width: min( calc(100dvw - 285px), calc(85dvh * 3 / 2) );
height: 85dvh;
}
❯ src/components/screen/screen.spec.tsx:79:27
|
src/components/screen/screen.spec.tsx > <Screen /> > renders with default desktop position and size:
gbajs3/src/components/screen/screen.spec.tsx#L110
Error: Snapshot `<Screen /> > renders with default desktop position and size 1` mismatched
- Expected
+ Received
@@ -18,10 +18,23 @@
overflow: visible;
width: 100dvw;
height: calc(100dvw * 2 / 3);
}
+ .c0::after {
+ content: '';
+ position: absolute;
+ top: -2px;
+ left: -2px;
+ right: -2px;
+ bottom: -2px;
+ margin: 2px;
+ pointer-events: none;
+ border: 2px dashed #1c76fd;
+ visibility: hidden;
+ }
+
@media only screen and (min-width: 600px) {
.c0 {
width: min( calc(100dvw - 285px), calc(85dvh * 3 / 2) );
height: 85dvh;
}
❯ src/components/screen/screen.spec.tsx:110:27
|
gbajs3 / build
Process completed with exit code 1.
|
change-detect
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
gbajs3 / build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|