Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update azure-pipelines.yml for Azure Pipelines #4

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
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