Skip to content

Conversation

@sunilsurana
Copy link
Member

@sunilsurana sunilsurana commented Oct 27, 2022

Current Behavior

Currently all the VR testing is done using screener

New Behavior

Integrate storywright for story tests - This can generate screenshots locally. Later to be integrated with 1JS VR tool for analyzing screenshot diffs

This PR doesnt change anything in existing code or existing pipeline. It add a convert verb which replace screener tags with storywright tag. The 2 pipelines added will run in optional mode

Related Issue(s)

Fixes #

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 27, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6d0a36b:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@size-auditor
Copy link

size-auditor bot commented Oct 27, 2022

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 870f51fc39736198871559d6e12ece5663b0525f (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 27, 2022

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1299 1312 5000
Button mount 950 948 5000
FluentProvider mount 1584 1591 5000
FluentProviderWithTheme mount 616 636 10
FluentProviderWithTheme virtual-rerender 593 594 10
FluentProviderWithTheme virtual-rerender-with-unmount 626 633 10
MakeStyles mount 1903 1906 50000
SpinButton mount 2554 2544 5000

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 27, 2022

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
global-context
createContext
533 B
341 B
global-context
createContextSelector
554 B
348 B
priority-overflow
createOverflowManager
3.153 kB
1.299 kB
react-accordion
Accordion (including children components)
79.243 kB
24.436 kB
react-alert
Alert
84.688 kB
21.233 kB
react-avatar
Avatar
48.874 kB
13.864 kB
react-avatar
AvatarGroup
14.996 kB
6.013 kB
react-avatar
AvatarGroupItem
68.842 kB
19.205 kB
react-badge
Badge
22.646 kB
7.228 kB
react-badge
CounterBadge
23.536 kB
7.512 kB
react-badge
PresenceBadge
24.096 kB
7.09 kB
react-button
Button
36.849 kB
9.907 kB
react-button
CompoundButton
43.874 kB
11.123 kB
react-button
MenuButton
39.543 kB
10.807 kB
react-button
SplitButton
46.989 kB
12.192 kB
react-button
ToggleButton
52.716 kB
11.381 kB
react-card
Card - All
67.664 kB
19.635 kB
react-card
Card
63.346 kB
18.539 kB
react-card
CardFooter
8.607 kB
3.622 kB
react-card
CardHeader
9.65 kB
3.962 kB
react-card
CardPreview
8.708 kB
3.678 kB
react-combobox
Combobox (including child components)
75.85 kB
24.632 kB
react-combobox
Dropdown (including child components)
75.579 kB
24.594 kB
react-components
react-components: Button, FluentProvider & webLightTheme
62.94 kB
17.663 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
189.603 kB
52.909 kB
react-components
react-components: FluentProvider & webLightTheme
33.446 kB
11.033 kB
react-dialog
Dialog (including children components)
83.147 kB
24.799 kB
react-divider
Divider
16.505 kB
5.925 kB
react-image
Image
10.826 kB
4.286 kB
react-infobutton
InfoButton
7.742 kB
3.265 kB
react-input
Input
24.428 kB
7.899 kB
react-label
Label
9.384 kB
3.883 kB
react-link
Link
11.852 kB
4.888 kB
react-menu
Menu (including children components)
116.78 kB
36.112 kB
react-menu
Menu (including selectable components)
119.849 kB
36.635 kB
react-overflow
hooks only
11.004 kB
4.188 kB
react-persona
Persona
53.992 kB
15.25 kB
react-popover
Popover
103.342 kB
31.82 kB
react-portal
Portal
10.628 kB
3.899 kB
react-portal-compat
PortalCompatProvider
5.857 kB
1.978 kB
react-positioning
usePositioning
19.724 kB
7.415 kB
react-progress
Progress
13.131 kB
5.039 kB
react-provider
FluentProvider
15.807 kB
5.909 kB
react-radio
Radio
36.436 kB
12.126 kB
react-radio
RadioGroup
14.294 kB
5.723 kB
react-select
Select
21.61 kB
7.568 kB
react-slider
Slider
31.805 kB
10.085 kB
react-spinbutton
SpinButton
45.826 kB
12.858 kB
react-spinner
Spinner
20.023 kB
6.461 kB
react-switch
Switch
33.388 kB
10.578 kB
react-text
Text - Default
11.828 kB
4.627 kB
react-text
Text - Wrappers
15.138 kB
5.064 kB
react-textarea
Textarea
25.687 kB
8.331 kB
react-theme
Single theme token import
69 B
89 B
react-theme
Teams: all themes
29.65 kB
6.444 kB
react-theme
Teams: Light theme
17.486 kB
5.057 kB
react-tooltip
Tooltip
41.718 kB
14.687 kB
react-utilities
SSRProvider
180 B
159 B
🤖 This report was generated against 870f51fc39736198871559d6e12ece5663b0525f

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 27, 2022

Perf Analysis (@fluentui/react-northstar)

Perf tests with no regressions
Scenario Current PR Ticks Baseline Ticks Ratio
PortalMinimalPerf.default 186 171 1.09:1
TreeWith60ListItems.default 188 174 1.08:1
AvatarMinimalPerf.default 217 204 1.06:1
ChatDuplicateMessagesPerf.default 304 286 1.06:1
GridMinimalPerf.default 383 361 1.06:1
HeaderMinimalPerf.default 412 389 1.06:1
ReactionMinimalPerf.default 437 412 1.06:1
RefMinimalPerf.default 225 213 1.06:1
AccordionMinimalPerf.default 168 160 1.05:1
DropdownManyItemsPerf.default 772 736 1.05:1
FormMinimalPerf.default 437 415 1.05:1
ListMinimalPerf.default 580 555 1.05:1
StatusMinimalPerf.default 773 734 1.05:1
RadioGroupMinimalPerf.default 497 479 1.04:1
SkeletonMinimalPerf.default 398 383 1.04:1
TextAreaMinimalPerf.default 566 542 1.04:1
CardMinimalPerf.default 615 597 1.03:1
LayoutMinimalPerf.default 405 392 1.03:1
ListWith60ListItems.default 684 664 1.03:1
IconMinimalPerf.default 773 748 1.03:1
AnimationMinimalPerf.default 577 563 1.02:1
AttachmentMinimalPerf.default 172 168 1.02:1
AttachmentSlotsPerf.default 1218 1191 1.02:1
ButtonSlotsPerf.default 618 607 1.02:1
DividerMinimalPerf.default 395 387 1.02:1
DropdownMinimalPerf.default 2872 2808 1.02:1
ItemLayoutMinimalPerf.default 1327 1301 1.02:1
MenuButtonMinimalPerf.default 1887 1855 1.02:1
RosterPerf.default 2418 2363 1.02:1
ProviderMinimalPerf.default 425 417 1.02:1
TextMinimalPerf.default 378 372 1.02:1
VideoMinimalPerf.default 820 806 1.02:1
BoxMinimalPerf.default 375 372 1.01:1
ChatMinimalPerf.default 810 802 1.01:1
CheckboxMinimalPerf.default 2306 2291 1.01:1
DatepickerMinimalPerf.default 6246 6177 1.01:1
DialogMinimalPerf.default 838 826 1.01:1
FlexMinimalPerf.default 314 311 1.01:1
ImageMinimalPerf.default 448 445 1.01:1
InputMinimalPerf.default 1238 1227 1.01:1
LoaderMinimalPerf.default 722 717 1.01:1
SegmentMinimalPerf.default 388 384 1.01:1
SliderMinimalPerf.default 1733 1709 1.01:1
TableManyItemsPerf.default 2156 2137 1.01:1
CustomToolbarPrototype.default 2811 2787 1.01:1
TooltipMinimalPerf.default 2613 2590 1.01:1
CarouselMinimalPerf.default 501 500 1:1
HeaderSlotsPerf.default 866 864 1:1
ListCommonPerf.default 702 700 1:1
MenuMinimalPerf.default 925 922 1:1
PopupMinimalPerf.default 669 667 1:1
ProviderMergeThemesPerf.default 1307 1307 1:1
SplitButtonMinimalPerf.default 4813 4797 1:1
TreeMinimalPerf.default 893 892 1:1
ButtonMinimalPerf.default 181 183 0.99:1
ButtonOverridesMissPerf.default 1420 1440 0.99:1
EmbedMinimalPerf.default 3982 4007 0.99:1
ChatWithPopoverPerf.default 402 412 0.98:1
TableMinimalPerf.default 435 445 0.98:1
AlertMinimalPerf.default 288 297 0.97:1
ListNestedPerf.default 615 636 0.97:1
ToolbarMinimalPerf.default 998 1039 0.96:1
LabelMinimalPerf.default 407 429 0.95:1

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 27, 2022

Perf Analysis (@fluentui/react)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
BaseButton mount 1232 1205 5000
Breadcrumb mount 3025 3052 1000
Checkbox mount 2733 2763 5000
CheckboxBase mount 2452 2438 5000
ChoiceGroup mount 4431 4491 5000
ComboBox mount 1283 1278 1000
CommandBar mount 9949 9975 1000
ContextualMenu mount 11700 11823 1000
DefaultButton mount 1413 1408 5000
DetailsRow mount 3651 3730 5000
DetailsRowFast mount 3719 3639 5000
DetailsRowNoStyles mount 3574 3499 5000
Dialog mount 3183 3192 1000
DocumentCardTitle mount 593 594 1000
Dropdown mount 3292 3302 5000
FocusTrapZone mount 2046 2024 5000
FocusZone mount 1978 2008 5000
GroupedList mount 57686 64860 2
GroupedList virtual-rerender 28232 26504 2
GroupedList virtual-rerender-with-unmount 95392 97072 2
GroupedListV2 mount 572 577 2
GroupedListV2 virtual-rerender 560 552 2
GroupedListV2 virtual-rerender-with-unmount 573 566 2
IconButton mount 1964 1915 5000
Label mount 743 752 5000
Layer mount 4304 4338 5000
Link mount 847 857 5000
MenuButton mount 1712 1735 5000
MessageBar mount 2389 2333 5000
Nav mount 3353 3352 1000
OverflowSet mount 1400 1387 5000
Panel mount 2636 2613 1000
Persona mount 1309 1323 1000
Pivot mount 1674 1692 1000
PrimaryButton mount 1562 1533 5000
Rating mount 7170 7159 5000
SearchBox mount 1528 1562 5000
Shimmer mount 2901 2980 5000
Slider mount 2156 2137 5000
SpinButton mount 4725 4797 5000
Spinner mount 825 826 5000
SplitButton mount 3184 3151 5000
Stack mount 833 842 5000
StackWithIntrinsicChildren mount 2306 2268 5000
StackWithTextChildren mount 4797 4780 5000
SwatchColorPicker mount 10711 10808 5000
TagPicker mount 2878 2671 5000
TeachingBubble mount 97366 98094 5000
Text mount 801 819 5000
TextField mount 1612 1621 5000
ThemeProvider mount 1584 1570 5000
ThemeProvider virtual-rerender 1092 1097 5000
ThemeProvider virtual-rerender-with-unmount 2164 2179 5000
Toggle mount 1123 1121 5000
buttonNative mount 564 554 5000

@TristanWatanabe TristanWatanabe merged commit 8af3b4d into microsoft:master Oct 28, 2022
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Oct 31, 2022
* master: (22 commits)
  fix(react-menu): removes exposing of internal type FluentTriggerComponent (microsoft#25410)
  fix(react-popover): removes exposing of internal type FluentTriggerComponent (microsoft#25411)
  applying package updates
  fix(react-tooltip): removes exposing of internal type FluentTriggerComponent (microsoft#25409)
  chore: Reducing bundle size of Stack by moving selector used in multiple places to local const (microsoft#25429)
  docs(rfcs): Simple component implementation (microsoft#25139)
  Fix migration publishing (microsoft#25422)
  Integrate storywright for story tests - As part of exploring screener alternative (microsoft#25399)
  fix(react-utilities): exposes internal methods used in API surface (microsoft#25406)
  fix(react-dialog): removes exposing of internal type FluentTriggerComponent (microsoft#25408)
  fix(react-context-selector): exposes internal type ContextSelector (microsoft#25404)
  fix(react-aria): exposes internal leaking types (microsoft#25403)
  fix(react-shared-contexts): exposes internal leaks used in the API surface (microsoft#25405)
  fix(react-positioning): exposes new typings to avoid exposing internal methods (microsoft#25407)
  applying package updates
  fix: Allowing DatePicker to be focusable within FocusZones by default (microsoft#25428)
  fix: Pad in slider so the thumb does not render outside the bounds of the root element (microsoft#25378)
  feat: Add enableScopedSelectors prop to Stack that, when true, makes the Stack styles selectors be more scoped to not be as expensive in style recalculation (microsoft#25397)
  fix(react-avatar): Remove gaps between AvatarGroupItem/OveflowButton and its outline (microsoft#25382)
  fix: Combobox text attribute ignored when empty string is passed (microsoft#24665)
  ...
NotWoods pushed a commit to NotWoods/fluentui that referenced this pull request Nov 18, 2022
Hotell pushed a commit to Hotell/fluentui that referenced this pull request Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants