Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/vr-tests-react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"description": "Visual regression tests for @fluentui/react-components",
"scripts": {
"test:component": "storywright --browsers chromium --url dist/storybook --destpath dist/screenshots --concurrency 4 --headless true",
"build": "build-storybook -o dist/storybook",
"clean": "just-scripts clean",
"format": "prettier . -w --ignore-path ../../.prettierignore",
Expand All @@ -14,7 +15,8 @@
"type-check": "tsc"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*"
"@fluentui/eslint-plugin": "*",
"storywright": "0.0.22"
},
"dependencies": {
"@fluentui/react-accordion": "^9.0.7",
Expand Down
12 changes: 6 additions & 6 deletions apps/vr-tests-react-components/src/stories/Accordion.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { storiesOf } from '@storybook/react';
import * as React from 'react';
import Screener from 'screener-storybook/src/screener';
import { StoryWright, Steps } from 'storywright';
import { Accordion, AccordionItem, AccordionHeader, AccordionPanel } from '@fluentui/react-accordion';
import { CircleRegular } from '@fluentui/react-icons';

storiesOf('Accordion Converged', module)
.addDecorator(story => (
<Screener
steps={new Screener.Steps()
<StoryWright
steps={new Steps()
.snapshot('normal', { cropTo: '.testWrapper' })
.focus('#opened-btn')
.snapshot('focus opened', { cropTo: '.testWrapper' })
Expand All @@ -18,7 +18,7 @@ storiesOf('Accordion Converged', module)
<div className="testWrapper" style={{ width: '300px' }}>
{story()}
</div>
</Screener>
</StoryWright>
))

.addStory(
Expand All @@ -40,11 +40,11 @@ storiesOf('Accordion Converged', module)

storiesOf('Accordion Converged', module)
.addDecorator(story => (
<Screener steps={new Screener.Steps().snapshot('normal', { cropTo: '.testWrapper' }).end()}>
<StoryWright steps={new Steps().snapshot('normal', { cropTo: '.testWrapper' }).end()}>
<div className="testWrapper" style={{ width: '300px' }}>
{story()}
</div>
</Screener>
</StoryWright>
))

.addStory(
Expand Down
238 changes: 0 additions & 238 deletions apps/vr-tests-react-components/src/stories/Avatar.stories.tsx

This file was deleted.

Loading