-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(E2E): use cypress-storybook library for tests (#18353)
* chore(E2E): use cypress-storybook library for tests This pr introduces [cypress-storybook](https://github.com/NicholasBoll/cypress-storybook) integration for cypress tests. Removes the need for the custom `visitStory` utility. The OSS integration uses storybook internals to modify controls and knobs which will be leverage in future PRs to improve testing. cypress-storybook also uses storybook internals to reload stories without a page reload and speeds up the tests by 50% in the best cases * Change files * add cypresss-storybook addon to react-examples too * Change files * update change file
- Loading branch information
Showing
17 changed files
with
322 additions
and
300 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { withFluentProvider, withStrictMode } from '@fluentui/react-storybook'; | ||
import 'cypress-storybook/react'; | ||
|
||
export const decorators = [withFluentProvider, withStrictMode]; |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-examples-a2261aab-dd20-49b5-9a04-e1b638f66fb3.json
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,7 @@ | ||
{ | ||
"type": "none", | ||
"comment": "Add cypress-storybook-plugin", | ||
"packageName": "@fluentui/react-examples", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-menu-ed1cf7c6-0169-42f3-b547-1ef71d5c20c3.json
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,7 @@ | ||
{ | ||
"type": "none", | ||
"comment": "Use cypress-storybook for e2e tests", | ||
"packageName": "@fluentui/react-menu", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-tabster-f220f4d8-0406-4e9d-853c-40511008f91f.json
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,7 @@ | ||
{ | ||
"type": "none", | ||
"packageName": "@fluentui/react-tabster", | ||
"comment": "Add cypress-storybook-plugin", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
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
Oops, something went wrong.