Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e676cc0
commit aa55f45
Showing
30 changed files
with
63 additions
and
46 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
19 changes: 19 additions & 0 deletions
19
packages/orbit-components/src/utils/Slide/Slide.ct-story.tsx
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,19 @@ | ||
import * as React from "react"; | ||
|
||
import type { Props } from "./types"; | ||
|
||
import Slide from "."; | ||
|
||
export function SlideStory(props: Omit<Props, "children">) { | ||
return ( | ||
<div className="p-md"> | ||
<Slide {...props}> | ||
Some | ||
<br /> | ||
elaborate | ||
<br /> | ||
content. | ||
</Slide> | ||
</div> | ||
); | ||
} |
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,18 @@ | ||
import * as React from "react"; | ||
import { test, expect } from "@playwright/experimental-ct-react"; | ||
|
||
import { SlideStory } from "./Slide.ct-story"; | ||
|
||
test.describe("visual Slide", () => { | ||
test("collapsed", async ({ mount }) => { | ||
const component = await mount(<SlideStory maxHeight={null} />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test("expanded", async ({ mount }) => { | ||
const component = await mount(<SlideStory maxHeight={null} expanded />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
}); |
Binary file added
BIN
+725 Bytes
.../utils/Slide/Slide.ct.tsx-snapshots/visual-Slide-collapsed-1-Desktop-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+725 Bytes
...c/utils/Slide/Slide.ct.tsx-snapshots/visual-Slide-collapsed-1-Desktop-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+827 Bytes
.../Slide/Slide.ct.tsx-snapshots/visual-Slide-collapsed-1-Large-Desktop-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+827 Bytes
...s/Slide/Slide.ct.tsx-snapshots/visual-Slide-collapsed-1-Large-Desktop-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.39 KB
...s/Slide/Slide.ct.tsx-snapshots/visual-Slide-collapsed-1-Large-Mobile-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+495 Bytes
...ls/Slide/Slide.ct.tsx-snapshots/visual-Slide-collapsed-1-Large-Mobile-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.1 KB
.../Slide/Slide.ct.tsx-snapshots/visual-Slide-collapsed-1-Medium-Mobile-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+443 Bytes
...s/Slide/Slide.ct.tsx-snapshots/visual-Slide-collapsed-1-Medium-Mobile-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+940 Bytes
...s/Slide/Slide.ct.tsx-snapshots/visual-Slide-collapsed-1-Small-Mobile-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+405 Bytes
...ls/Slide/Slide.ct.tsx-snapshots/visual-Slide-collapsed-1-Small-Mobile-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.73 KB
...c/utils/Slide/Slide.ct.tsx-snapshots/visual-Slide-collapsed-1-Tablet-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+559 Bytes
...rc/utils/Slide/Slide.ct.tsx-snapshots/visual-Slide-collapsed-1-Tablet-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.89 KB
...c/utils/Slide/Slide.ct.tsx-snapshots/visual-Slide-expanded-1-Desktop-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.59 KB
...rc/utils/Slide/Slide.ct.tsx-snapshots/visual-Slide-expanded-1-Desktop-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.07 KB
...s/Slide/Slide.ct.tsx-snapshots/visual-Slide-expanded-1-Large-Desktop-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.74 KB
...ls/Slide/Slide.ct.tsx-snapshots/visual-Slide-expanded-1-Large-Desktop-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.27 KB
...ls/Slide/Slide.ct.tsx-snapshots/visual-Slide-expanded-1-Large-Mobile-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.42 KB
...ils/Slide/Slide.ct.tsx-snapshots/visual-Slide-expanded-1-Large-Mobile-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.89 KB
...s/Slide/Slide.ct.tsx-snapshots/visual-Slide-expanded-1-Medium-Mobile-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.75 KB
...ls/Slide/Slide.ct.tsx-snapshots/visual-Slide-expanded-1-Medium-Mobile-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.13 KB
...ls/Slide/Slide.ct.tsx-snapshots/visual-Slide-expanded-1-Small-Mobile-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.68 KB
...ils/Slide/Slide.ct.tsx-snapshots/visual-Slide-expanded-1-Small-Mobile-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.7 KB
...rc/utils/Slide/Slide.ct.tsx-snapshots/visual-Slide-expanded-1-Tablet-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.57 KB
...src/utils/Slide/Slide.ct.tsx-snapshots/visual-Slide-expanded-1-Tablet-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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