Skip to content

Commit e520d51

Browse files
committed
test: update sreenshots
1 parent 378f09c commit e520d51

File tree

696 files changed

+38
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

696 files changed

+38
-11
lines changed

docs/styles.md

Lines changed: 6 additions & 0 deletions

playwright/core/mountFixture.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,19 @@ export const mountFixture: PlaywrightFixture<MountFixture> = async ({mount: base
99
const mount = async (
1010
component: JSX.Element,
1111
options?: MountOptions<JsonObject> | undefined,
12+
style?: React.CSSProperties | undefined,
1213
) => {
1314
return await baseMount(
1415
<div
15-
style={{
16-
padding: 20,
17-
width: 'fit-content',
18-
height: 'fit-content',
19-
}}
16+
style={
17+
style
18+
? style
19+
: {
20+
padding: 20,
21+
width: 'fit-content',
22+
height: 'fit-content',
23+
}
24+
}
2025
className="playwright-wrapper-test"
2126
>
2227
{component}
4 Bytes
-4 Bytes
10 Bytes
-4 Bytes
19 Bytes
17 Bytes
11 Bytes
12 Bytes

0 commit comments

Comments
 (0)