-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Integrate storywright for story tests - As part of exploring screener alternative #25399
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
36895b5
Update Link.stories.tsx
sunilsurana 6d25b5a
Update Link.stories.tsx
sunilsurana 1722b78
update
sunilsurana 2e77e64
revert some changes
sunilsurana d6238f9
merge changes
sunilsurana 0607155
update storywright version
sunilsurana 583c21b
rename
sunilsurana 1fca9e6
rename
sunilsurana 015c95d
updatE
sunilsurana bee7554
remove whitespace
sunilsurana 044312f
update
sunilsurana 004b6af
remove cleanup
sunilsurana 6d0a36b
Update pool to 1ES
sunilsurana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
apps/vr-tests-react-components/convertStoriesToStoryWright.sh
This file contains hidden or 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,5 @@ | ||
| #!/usr/bin/env bash | ||
| set -x | ||
| sed -i "s/import.*Screener.*screener'/import { StoryWright, Steps } from 'storywright'/g" src/stories/* | ||
| sed -i "s/Screener.Steps/Steps/g" src/stories/* | ||
| sed -i "s/Screener/StoryWright/g" src/stories/* |
This file contains hidden or 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 hidden or 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,50 @@ | ||
| # Starter pipeline | ||
| # Start with a minimal pipeline that you can customize to build and deploy your code. | ||
| # Add steps that build, run tests, deploy, and more: | ||
| # https://aka.ms/yaml | ||
|
|
||
| trigger: | ||
| batch: true | ||
| branches: | ||
| include: | ||
| - master | ||
|
|
||
| variables: | ||
| skipComponentGovernanceDetection: true | ||
|
|
||
| pool: | ||
| vmImage: ubuntu-latest | ||
|
|
||
| jobs: | ||
| - job: VRToolUpdateBaseline | ||
| workspace: | ||
| clean: all | ||
| steps: | ||
| - template: .devops/templates/tools.yml | ||
|
|
||
| - task: Bash@3 | ||
| inputs: | ||
| filePath: yarn-ci.sh | ||
| displayName: yarn (install packages) | ||
|
|
||
| - script: | | ||
| yarn workspace @fluentui/vr-tests-react-components screener:build | ||
| displayName: Build VR tests components package | ||
|
|
||
| - script: | | ||
| yarn lage test:component --verbose | ||
| displayName: 'Run VR tests' | ||
|
|
||
| - script: | | ||
| mkdir -p screenshots | ||
| cp -rf apps/vr-tests-react-components/dist/screenshots/*.png screenshots/ | ||
| displayName: Collate Artifacts | ||
|
|
||
| - task: PublishBuildArtifacts@1 | ||
| inputs: | ||
| PathtoPublish: 'screenshots' | ||
| ArtifactName: 'vrscreenshot' | ||
| publishLocation: 'Container' | ||
|
|
||
| - bash: node packages/screenshotdiff/dist/index.js release --buildId $(Build.BuildId) | ||
| displayName: 'Run Screenshotdiff update baseline' | ||
This file contains hidden or 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,46 @@ | ||
| pr: | ||
| - master | ||
|
|
||
| # There's a separate pipeline for CI which also uses this file, but with a trigger override in the UI | ||
| # https://dev.azure.com/uifabric/fabricpublic/_apps/hub/ms.vss-ciworkflow.build-ci-hub?_a=edit-build-definition&id=164&view=Tab_Triggers | ||
| trigger: none | ||
|
|
||
| variables: | ||
| - ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/heads/')) }}: | ||
| - name: sinceArg | ||
| value: --since $(targetBranch) | ||
|
|
||
| - template: .devops/templates/variables.yml | ||
|
|
||
| pool: '1ES-Host-Ubuntu' | ||
|
|
||
| jobs: | ||
| - job: TestVRTool | ||
| workspace: | ||
| clean: all | ||
| steps: | ||
| - template: .devops/templates/tools.yml | ||
|
|
||
| - task: Bash@3 | ||
| inputs: | ||
| filePath: yarn-ci.sh | ||
| displayName: yarn (install packages) | ||
|
|
||
| - script: | | ||
| yarn workspace @fluentui/vr-tests-react-components screener:build | ||
| displayName: Build vr tests components package | ||
|
|
||
| - script: | | ||
| yarn lage test:component --verbose | ||
| displayName: 'Run VR tests' | ||
|
|
||
| - script: | | ||
| mkdir -p screenshots | ||
| cp -rf apps/vr-tests-react-components/dist/screenshots/*.png screenshots/ | ||
| displayName: Collate Artifacts | ||
|
|
||
| - task: PublishBuildArtifacts@1 | ||
| inputs: | ||
| PathtoPublish: 'screenshots' | ||
| ArtifactName: 'vrscreenshot' | ||
| publishLocation: 'Container' |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.