-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(playwright): added a wrapper mount fixture (#1150)
- Loading branch information
1 parent
ed68043
commit 1479efc
Showing
32 changed files
with
40 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
|
||
import type {JsonObject} from '@playwright/experimental-ct-core/types/component'; | ||
import {ComponentFixtures, MountOptions, test as base} from '@playwright/experimental-ct-react'; | ||
|
||
type MountFixtures = { | ||
mount: ComponentFixtures['mount']; | ||
}; | ||
|
||
export const test = base.extend<MountFixtures>({ | ||
mount: async ({mount: baseMount}, use) => { | ||
const mount = async ( | ||
component: JSX.Element, | ||
options?: MountOptions<JsonObject> | undefined, | ||
) => { | ||
return await baseMount( | ||
<div style={{padding: 20, width: 'fit-content', height: 'fit-content'}}> | ||
{component} | ||
</div>, | ||
options, | ||
); | ||
}; | ||
|
||
await use(mount); | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
Binary file modified
BIN
-9.09 KB
(94%)
...Button.visual.test.tsx-snapshots/Button-ButtonViewShowcase-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7.78 KB
(94%)
..._/Button.visual.test.tsx-snapshots/Button-ButtonViewShowcase-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+197 Bytes
(120%)
...pshots__/Button.visual.test.tsx-snapshots/Button-add-style-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+187 Bytes
(120%)
...napshots__/Button.visual.test.tsx-snapshots/Button-add-style-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+228 Bytes
(120%)
...x-snapshots/Button-loading-when-loading-true-prop-is-given-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+196 Bytes
(120%)
...tsx-snapshots/Button-loading-when-loading-true-prop-is-given-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+179 Bytes
(120%)
....visual.test.tsx-snapshots/Button-render-buttom-by-default-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+183 Bytes
(120%)
...on.visual.test.tsx-snapshots/Button-render-buttom-by-default-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+179 Bytes
(120%)
...ual.test.tsx-snapshots/Button-render-with-given-reset-type-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+183 Bytes
(120%)
...isual.test.tsx-snapshots/Button-render-with-given-reset-type-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+179 Bytes
(120%)
...al.test.tsx-snapshots/Button-render-with-given-submit-type-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+183 Bytes
(120%)
...sual.test.tsx-snapshots/Button-render-with-given-submit-type-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+188 Bytes
(120%)
...snapshots/Button-selected-when-selected-true-prop-is-given-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+201 Bytes
(120%)
...x-snapshots/Button-selected-when-selected-true-prop-is-given-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+194 Bytes
(120%)
...ual.test.tsx-snapshots/Button-should-render-Icon-component-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+188 Bytes
(120%)
...isual.test.tsx-snapshots/Button-should-render-Icon-component-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+179 Bytes
(120%)
...utton.visual.test.tsx-snapshots/Button-should-render-a-tag-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+183 Bytes
(120%)
.../Button.visual.test.tsx-snapshots/Button-should-render-a-tag-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+188 Bytes
(110%)
...Button.visual.test.tsx-snapshots/Button-should-render-icon-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+210 Bytes
(120%)
..._/Button.visual.test.tsx-snapshots/Button-should-render-icon-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+187 Bytes
(110%)
...est.tsx-snapshots/Button-should-render-icon-in-Button-Icon-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+202 Bytes
(110%)
....test.tsx-snapshots/Button-should-render-icon-in-Button-Icon-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+214 Bytes
(110%)
...utton.visual.test.tsx-snapshots/Button-show-given-children-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+187 Bytes
(110%)
.../Button.visual.test.tsx-snapshots/Button-show-given-children-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+207 Bytes
(110%)
...Button.visual.test.tsx-snapshots/Button-show-given-content-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+193 Bytes
(120%)
..._/Button.visual.test.tsx-snapshots/Button-show-given-content-1-webkit-linux.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters