This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Playwright tests less flaky by using storybook to test VMediaReu…
…se (#1946) Use storybook to test VMediaReuse
- Loading branch information
Showing
75 changed files
with
69 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { | ||
ArgsTable, | ||
Canvas, | ||
Description, | ||
Meta, | ||
Story, | ||
} from '@storybook/addon-docs' | ||
|
||
import VMediaReuse from '~/components/VMediaInfo/VMediaReuse.vue' | ||
|
||
export const image = { | ||
id: 'f9384235-b72e-4f1e-9b05-e1b116262a29', | ||
frontendMediaType: 'image', | ||
title: 'Cat', | ||
originalTitle: 'Cat', | ||
foreign_landing_url: 'https://www.flickr.com/photos/7788419@N05/15218475961', | ||
url: 'https://live.staticflickr.com/3903/15218475961_963a4c116e_b.jpg', | ||
creator: 'strogoscope', | ||
creator_url: 'https://www.flickr.com/photos/7788419@N05', | ||
license: 'by', | ||
license_version: '2.0', | ||
license_url: 'https://creativecommons.org/licenses/by/2.0/', | ||
provider: 'flickr', | ||
source: 'flickr', | ||
detail_url: | ||
'http://localhost:49153/v1/images/f9384235-b72e-4f1e-9b05-e1b116262a29/', | ||
} | ||
|
||
<Meta title="Components/VMediaInfo/VMediaReuse" components={VMediaReuse} /> | ||
|
||
export const Template = (args) => ({ | ||
template: ` | ||
<div class="flex flex-col gap-y-2"> | ||
<VLanguageSelect /> | ||
<VMediaReuse v-bind="args" /> | ||
</div> | ||
`, | ||
components: { VMediaReuse }, | ||
setup() { | ||
return { args } | ||
}, | ||
}) | ||
|
||
# VMediaReuse | ||
|
||
<Description of={VMediaReuse} /> | ||
|
||
<ArgsTable of={VMediaReuse} /> | ||
|
||
<Canvas> | ||
<Story | ||
name="VMediaReuse" | ||
args={{ | ||
media: image, | ||
}} | ||
> | ||
{Template.bind({})} | ||
</Story> | ||
</Canvas> |
Binary file removed
BIN
-44.4 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-ltr-html-tab-2xl-linux.png
Binary file not shown.
Binary file removed
BIN
-44.4 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-ltr-html-tab-lg-linux.png
Binary file not shown.
Binary file removed
BIN
-42.6 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-ltr-html-tab-md-linux.png
Binary file not shown.
Binary file removed
BIN
-50.1 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-ltr-html-tab-sm-linux.png
Binary file not shown.
Binary file removed
BIN
-44.4 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-ltr-html-tab-xl-linux.png
Binary file not shown.
Binary file removed
BIN
-38.5 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-ltr-html-tab-xs-linux.png
Binary file not shown.
Binary file removed
BIN
-45.9 KB
...omponents/media-reuse.spec.ts-snapshots/media-reuse-ltr-plain-tab-2xl-linux.png
Binary file not shown.
Binary file removed
BIN
-45.9 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-ltr-plain-tab-lg-linux.png
Binary file not shown.
Binary file removed
BIN
-47.1 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-ltr-plain-tab-md-linux.png
Binary file not shown.
Binary file removed
BIN
-41.3 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-ltr-plain-tab-sm-linux.png
Binary file not shown.
Binary file removed
BIN
-45.9 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-ltr-plain-tab-xl-linux.png
Binary file not shown.
Binary file removed
BIN
-39.7 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-ltr-plain-tab-xs-linux.png
Binary file not shown.
Binary file removed
BIN
-36.6 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-ltr-rich-tab-2xl-linux.png
Binary file not shown.
Binary file removed
BIN
-36.6 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-ltr-rich-tab-lg-linux.png
Binary file not shown.
Binary file removed
BIN
-37.1 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-ltr-rich-tab-md-linux.png
Binary file not shown.
Binary file removed
BIN
-21.3 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-ltr-rich-tab-sm-linux.png
Binary file not shown.
Binary file removed
BIN
-36.6 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-ltr-rich-tab-xl-linux.png
Binary file not shown.
Binary file removed
BIN
-33.2 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-ltr-rich-tab-xs-linux.png
Binary file not shown.
Binary file removed
BIN
-28.9 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-rtl-html-tab-2xl-linux.png
Binary file not shown.
Binary file removed
BIN
-28.9 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-rtl-html-tab-lg-linux.png
Binary file not shown.
Binary file removed
BIN
-26.1 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-rtl-html-tab-md-linux.png
Binary file not shown.
Binary file removed
BIN
-35.8 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-rtl-html-tab-sm-linux.png
Binary file not shown.
Binary file removed
BIN
-28.9 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-rtl-html-tab-xl-linux.png
Binary file not shown.
Binary file removed
BIN
-24.2 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-rtl-html-tab-xs-linux.png
Binary file not shown.
Binary file removed
BIN
-26.4 KB
...omponents/media-reuse.spec.ts-snapshots/media-reuse-rtl-plain-tab-2xl-linux.png
Binary file not shown.
Binary file removed
BIN
-26.4 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-rtl-plain-tab-lg-linux.png
Diff not rendered.
Binary file removed
BIN
-26.8 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-rtl-plain-tab-md-linux.png
Diff not rendered.
Binary file removed
BIN
-24.6 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-rtl-plain-tab-sm-linux.png
Diff not rendered.
Binary file removed
BIN
-26.4 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-rtl-plain-tab-xl-linux.png
Diff not rendered.
Binary file removed
BIN
-23.7 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-rtl-plain-tab-xs-linux.png
Diff not rendered.
Binary file removed
BIN
-18.7 KB
...components/media-reuse.spec.ts-snapshots/media-reuse-rtl-rich-tab-2xl-linux.png
Diff not rendered.
Binary file removed
BIN
-18.7 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-rtl-rich-tab-lg-linux.png
Diff not rendered.
Binary file removed
BIN
-19.1 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-rtl-rich-tab-md-linux.png
Diff not rendered.
Binary file removed
BIN
-18.9 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-rtl-rich-tab-sm-linux.png
Diff not rendered.
Binary file removed
BIN
-18.7 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-rtl-rich-tab-xl-linux.png
Diff not rendered.
Binary file removed
BIN
-17.6 KB
.../components/media-reuse.spec.ts-snapshots/media-reuse-rtl-rich-tab-xs-linux.png
Diff not rendered.
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
Binary file added
BIN
+52.7 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-html-tab-2xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+45.4 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-html-tab-lg-linux.png
Oops, something went wrong.
Binary file added
BIN
+43.7 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-html-tab-md-linux.png
Oops, something went wrong.
Binary file added
BIN
+49.9 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-html-tab-sm-linux.png
Oops, something went wrong.
Binary file added
BIN
+50 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-html-tab-xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+37.8 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-html-tab-xs-linux.png
Oops, something went wrong.
Binary file added
BIN
+45.6 KB
...ression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-plain-tab-2xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+44.5 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-plain-tab-lg-linux.png
Oops, something went wrong.
Binary file added
BIN
+46.7 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-plain-tab-md-linux.png
Oops, something went wrong.
Binary file added
BIN
+40.7 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-plain-tab-sm-linux.png
Oops, something went wrong.
Binary file added
BIN
+44.9 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-plain-tab-xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+38.8 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-plain-tab-xs-linux.png
Oops, something went wrong.
Binary file added
BIN
+37.1 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-rich-tab-2xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+35.6 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-rich-tab-lg-linux.png
Oops, something went wrong.
Binary file added
BIN
+36.7 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-rich-tab-md-linux.png
Oops, something went wrong.
Binary file added
BIN
+33.9 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-rich-tab-sm-linux.png
Oops, something went wrong.
Binary file added
BIN
+36.4 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-rich-tab-xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+32.4 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-ltr-rich-tab-xs-linux.png
Oops, something went wrong.
Binary file added
BIN
+36.1 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-html-tab-2xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+29.2 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-html-tab-lg-linux.png
Oops, something went wrong.
Binary file added
BIN
+26.5 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-html-tab-md-linux.png
Oops, something went wrong.
Binary file added
BIN
+35.5 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-html-tab-sm-linux.png
Oops, something went wrong.
Binary file added
BIN
+33.1 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-html-tab-xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+24.4 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-html-tab-xs-linux.png
Oops, something went wrong.
Binary file added
BIN
+26.8 KB
...ression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-plain-tab-2xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+26.3 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-plain-tab-lg-linux.png
Oops, something went wrong.
Binary file added
BIN
+25.9 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-plain-tab-md-linux.png
Oops, something went wrong.
Binary file added
BIN
+24.4 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-plain-tab-sm-linux.png
Oops, something went wrong.
Binary file added
BIN
+26.1 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-plain-tab-xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+23.6 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-plain-tab-xs-linux.png
Oops, something went wrong.
Binary file added
BIN
+19.3 KB
...gression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-rich-tab-2xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.2 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-rich-tab-lg-linux.png
Oops, something went wrong.
Binary file added
BIN
+18 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-rich-tab-md-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.6 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-rich-tab-sm-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.6 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-rich-tab-xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+17.5 KB
...egression/v-media-reuse.spec.ts-snapshots/media-reuse-rtl-rich-tab-xs-linux.png
Oops, something went wrong.