@@ -1158,6 +1901,7 @@ exports[`DetailsViewCommandBar renders start assessment over dialog: start asses
scanmetadata="[object Object]"
switchernavconfiguration="[object Object]"
tabstoredata="[object Object]"
+ userconfigurationstoredata="[object Object]"
/>
+
@@ -1235,67 +1995,82 @@ exports[`DetailsViewCommandBar renders start test over dialog: start test over d
class="detailsViewCommandButtons"
>
@@ -1323,6 +2098,7 @@ exports[`DetailsViewCommandBar renders start test over dialog: start test over d
scanmetadata="[object Object]"
switchernavconfiguration="[object Object]"
tabstoredata="[object Object]"
+ userconfigurationstoredata="[object Object]"
/>
+
@@ -1400,63 +2192,78 @@ exports[`DetailsViewCommandBar renders start test over dialog: start test over d
class="detailsViewCommandButtons"
>
@@ -1485,6 +2292,7 @@ exports[`DetailsViewCommandBar renders start test over dialog: start test over d
scanmetadata="[object Object]"
switchernavconfiguration="[object Object]"
tabstoredata="[object Object]"
+ userconfigurationstoredata="[object Object]"
/>
+
@@ -1562,31 +2386,30 @@ exports[`DetailsViewCommandBar renders transfer to assessment dialog: transfer t
class="detailsViewCommandButtons"
>
Transfer to assessment stub
@@ -1616,6 +2439,7 @@ exports[`DetailsViewCommandBar renders transfer to assessment dialog: transfer t
scanmetadata="[object Object]"
switchernavconfiguration="[object Object]"
tabstoredata="[object Object]"
+ userconfigurationstoredata="[object Object]"
/>
+
@@ -1693,31 +2533,30 @@ exports[`DetailsViewCommandBar renders transfer to assessment dialog: transfer t
class="detailsViewCommandButtons"
>
Transfer to assessment stub
@@ -1747,6 +2586,7 @@ exports[`DetailsViewCommandBar renders transfer to assessment dialog: transfer t
scanmetadata="[object Object]"
switchernavconfiguration="[object Object]"
tabstoredata="[object Object]"
+ userconfigurationstoredata="[object Object]"
/>
+
`;
+exports[`DetailsViewCommandBar renders with buttons 1`] = ``;
+
+exports[`DetailsViewCommandBar renders with buttons : CommandBarButtonsMenu props 1`] = `undefined`;
+
exports[`DetailsViewCommandBar renders with buttons collapsed into a menu 1`] = `
+
@@ -1940,25 +2817,10 @@ exports[`DetailsViewCommandBar renders with export button and start over 1`] = `
Transfer to assessment stub
+
@@ -2093,6 +2972,7 @@ exports[`DetailsViewCommandBar renders with export button, without start over 1`
scanmetadata="[object Object]"
switchernavconfiguration="[object Object]"
tabstoredata="[object Object]"
+ userconfigurationstoredata="[object Object]"
/>
+
@@ -2200,6 +3096,7 @@ exports[`DetailsViewCommandBar renders without export button and without start o
scanmetadata="[object Object]"
switchernavconfiguration="[object Object]"
tabstoredata="[object Object]"
+ userconfigurationstoredata="[object Object]"
/>
+
@@ -2283,25 +3196,10 @@ exports[`DetailsViewCommandBar renders without export button, with start over 1`
Transfer to assessment stub
+
diff --git a/src/tests/unit/tests/DetailsView/components/__snapshots__/failure-instance-panel-control.test.tsx.snap b/src/tests/unit/tests/DetailsView/components/__snapshots__/failure-instance-panel-control.test.tsx.snap
index 71a7881e13e..b4df5ffc26b 100644
--- a/src/tests/unit/tests/DetailsView/components/__snapshots__/failure-instance-panel-control.test.tsx.snap
+++ b/src/tests/unit/tests/DetailsView/components/__snapshots__/failure-instance-panel-control.test.tsx.snap
@@ -1,13 +1,14 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`FailureInstancePanelControlTest closeFailureInstancePanel: CustomizedActionButton props 1`] = `
+exports[`FailureInstancePanelControlTest closeFailureInstancePanel: Button props 1`] = `
{
- "ariaDescription": "Open add a failure instance panel",
- "ariaLabel": "Add a failure instance",
+ "appearance": "transparent",
+ "aria-description": "Open add a failure instance panel",
+ "aria-label": "Add a failure instance",
"children": "Add a failure instance",
- "iconProps": {
- "iconName": "Add",
- },
+ "icon": ,
"onClick": [Function],
}
`;
@@ -25,88 +26,94 @@ exports[`FailureInstancePanelControlTest closeFailureInstancePanel: FlaggedCompo
}
`;
-exports[`FailureInstancePanelControlTest componentDidUpdate reassigns state: CustomizedActionButton props 1`] = `
+exports[`FailureInstancePanelControlTest componentDidUpdate reassigns state: Button props 1`] = `
{
- "ariaDescription": "Open add a failure instance panel",
- "ariaLabel": "Add a failure instance",
+ "appearance": "transparent",
+ "aria-description": "Open add a failure instance panel",
+ "aria-label": "Add a failure instance",
"children": "Add a failure instance",
- "iconProps": {
- "iconName": "Add",
- },
+ "icon": ,
"onClick": [Function],
}
`;
exports[`FailureInstancePanelControlTest componentDidUpdate reassigns state: FlaggedComponent props 1`] = `undefined`;
-exports[`FailureInstancePanelControlTest onAddFailureInstance: CustomizedActionButton props 1`] = `
+exports[`FailureInstancePanelControlTest onAddFailureInstance: Button props 1`] = `
{
- "ariaDescription": "Open add a failure instance panel",
- "ariaLabel": "Add a failure instance",
+ "appearance": "transparent",
+ "aria-description": "Open add a failure instance panel",
+ "aria-label": "Add a failure instance",
"children": "Add a failure instance",
- "iconProps": {
- "iconName": "Add",
- },
+ "icon": ,
"onClick": [Function],
}
`;
exports[`FailureInstancePanelControlTest onAddFailureInstance: FlaggedComponent props 1`] = `undefined`;
-exports[`FailureInstancePanelControlTest onFailureDescriptionChange: CustomizedActionButton props 1`] = `
+exports[`FailureInstancePanelControlTest onFailureDescriptionChange: Button props 1`] = `
{
- "ariaDescription": "Open add a failure instance panel",
- "ariaLabel": "Add a failure instance",
+ "appearance": "transparent",
+ "aria-description": "Open add a failure instance panel",
+ "aria-label": "Add a failure instance",
"children": "Add a failure instance",
- "iconProps": {
- "iconName": "Add",
- },
+ "icon": ,
"onClick": [Function],
}
`;
exports[`FailureInstancePanelControlTest onFailureDescriptionChange: FlaggedComponent props 1`] = `undefined`;
-exports[`FailureInstancePanelControlTest onSaveEditedFailureInstance: CustomizedActionButton props 1`] = `undefined`;
+exports[`FailureInstancePanelControlTest onSaveEditedFailureInstance: Button props 1`] = `undefined`;
exports[`FailureInstancePanelControlTest onSaveEditedFailureInstance: FlaggedComponent props 1`] = `undefined`;
-exports[`FailureInstancePanelControlTest onSelectorChange : CustomizedActionButton props 1`] = `
+exports[`FailureInstancePanelControlTest onSelectorChange : Button props 1`] = `
{
- "ariaDescription": "Open add a failure instance panel",
- "ariaLabel": "Add a failure instance",
+ "appearance": "transparent",
+ "aria-description": "Open add a failure instance panel",
+ "aria-label": "Add a failure instance",
"children": "Add a failure instance",
- "iconProps": {
- "iconName": "Add",
- },
+ "icon": ,
"onClick": [Function],
}
`;
exports[`FailureInstancePanelControlTest onSelectorChange : FlaggedComponent props 1`] = `undefined`;
-exports[`FailureInstancePanelControlTest onValidateSelector : CustomizedActionButton props 1`] = `
+exports[`FailureInstancePanelControlTest onValidateSelector : Button props 1`] = `
{
- "ariaDescription": "Open add a failure instance panel",
- "ariaLabel": "Add a failure instance",
+ "appearance": "transparent",
+ "aria-description": "Open add a failure instance panel",
+ "aria-label": "Add a failure instance",
"children": "Add a failure instance",
- "iconProps": {
- "iconName": "Add",
- },
+ "icon": ,
"onClick": [Function],
}
`;
exports[`FailureInstancePanelControlTest onValidateSelector : FlaggedComponent props 1`] = `undefined`;
-exports[`FailureInstancePanelControlTest openFailureInstancePanel: CustomizedActionButton props 1`] = `
+exports[`FailureInstancePanelControlTest openFailureInstancePanel: Button props 1`] = `
{
- "ariaDescription": "Open add a failure instance panel",
- "ariaLabel": "Add a failure instance",
+ "appearance": "transparent",
+ "aria-description": "Open add a failure instance panel",
+ "aria-label": "Add a failure instance",
"children": "Add a failure instance",
- "iconProps": {
- "iconName": "Add",
- },
+ "icon": ,
"onClick": [Function],
}
`;
@@ -115,13 +122,14 @@ exports[`FailureInstancePanelControlTest openFailureInstancePanel: FlaggedCompon
exports[`FailureInstancePanelControlTest render FailureInstancePanelControl: create without instance 1`] = `
-
Add a failure instance
-
+
`;
-exports[`FailureInstancePanelControlTest render FailureInstancePanelControl: create without instance: CustomizedActionButton props 1`] = `
+exports[`FailureInstancePanelControlTest render FailureInstancePanelControl: create without instance: Button props 1`] = `
{
- "ariaDescription": "Open add a failure instance panel",
- "ariaLabel": "Add a failure instance",
+ "appearance": "transparent",
+ "aria-description": "Open add a failure instance panel",
+ "aria-label": "Add a failure instance",
"children": "Add a failure instance",
- "iconProps": {
- "iconName": "Add",
- },
+ "icon": ,
"onClick": [Function],
}
`;
@@ -216,7 +225,7 @@ exports[`FailureInstancePanelControlTest render FailureInstancePanelControl: edi
`;
-exports[`FailureInstancePanelControlTest render FailureInstancePanelControl: edit without instance: CustomizedActionButton props 1`] = `undefined`;
+exports[`FailureInstancePanelControlTest render FailureInstancePanelControl: edit without instance: Button props 1`] = `undefined`;
exports[`FailureInstancePanelControlTest render FailureInstancePanelControl: edit without instance: FlaggedComponent props 1`] = `
{
@@ -233,13 +242,14 @@ exports[`FailureInstancePanelControlTest render FailureInstancePanelControl: edi
exports[`FailureInstancePanelControlTest render FailureInstancePanelControl: partial original instance 1`] = `
-
Add a failure instance
-
+
`;
-exports[`FailureInstancePanelControlTest render FailureInstancePanelControl: partial original instance: CustomizedActionButton props 1`] = `
+exports[`FailureInstancePanelControlTest render FailureInstancePanelControl: partial original instance: Button props 1`] = `
{
- "ariaDescription": "Open add a failure instance panel",
- "ariaLabel": "Add a failure instance",
+ "appearance": "transparent",
+ "aria-description": "Open add a failure instance panel",
+ "aria-label": "Add a failure instance",
"children": "Add a failure instance",
- "iconProps": {
- "iconName": "Add",
- },
+ "icon": ,
"onClick": [Function],
}
`;
diff --git a/src/tests/unit/tests/DetailsView/components/__snapshots__/iframe-warning.test.tsx.snap b/src/tests/unit/tests/DetailsView/components/__snapshots__/iframe-warning.test.tsx.snap
index c37b5b63b54..ce90dfcbbc7 100644
--- a/src/tests/unit/tests/DetailsView/components/__snapshots__/iframe-warning.test.tsx.snap
+++ b/src/tests/unit/tests/DetailsView/components/__snapshots__/iframe-warning.test.tsx.snap
@@ -8,6 +8,7 @@ exports[`AssessmentIframeWarning render 1`] = `
There are iframes in the target page. To have complete results,
give Accessibility Insights additional permissions
@@ -29,6 +30,7 @@ exports[`FastPassIframeWarning render 1`] = `
There are iframes in the target page. To have complete results,
give Accessibility Insights additional permissions
@@ -50,6 +52,7 @@ exports[`IframeWarning render 1`] = `
There are iframes in the target page. To have complete results,
give Accessibility Insights additional permissions
diff --git a/src/tests/unit/tests/DetailsView/components/__snapshots__/inline-start-over-button.test.tsx.snap b/src/tests/unit/tests/DetailsView/components/__snapshots__/inline-start-over-button.test.tsx.snap
index fe551795e68..a599b2f8b38 100644
--- a/src/tests/unit/tests/DetailsView/components/__snapshots__/inline-start-over-button.test.tsx.snap
+++ b/src/tests/unit/tests/DetailsView/components/__snapshots__/inline-start-over-button.test.tsx.snap
@@ -5,20 +5,23 @@ exports[`InlineStartOverButton renders 1`] = `
+ insightscommandbuttoniconprops="[object Object]"
+ >
+ Start over
+
`;
exports[`InlineStartOverButton renders: InsightsCommandButton props 1`] = `
{
+ "children": "Start over",
"className": "inlineStartOverButton",
"data-automation-id": "inline-start-over-button",
- "iconProps": {
- "iconName": "Refresh",
+ "insightsCommandButtonIconProps": {
+ "icon": ,
},
"onClick": [Function],
- "text": "Start over",
}
`;
diff --git a/src/tests/unit/tests/DetailsView/components/__snapshots__/load-assessment-button.test.tsx.snap b/src/tests/unit/tests/DetailsView/components/__snapshots__/load-assessment-button.test.tsx.snap
index ded7755519c..fe27bc45eb1 100644
--- a/src/tests/unit/tests/DetailsView/components/__snapshots__/load-assessment-button.test.tsx.snap
+++ b/src/tests/unit/tests/DetailsView/components/__snapshots__/load-assessment-button.test.tsx.snap
@@ -3,8 +3,9 @@
exports[`LoadAssessmentButton should render per the snapshot 1`] = `
Load assessment
@@ -13,11 +14,18 @@ exports[`LoadAssessmentButton should render per the snapshot 1`] = `
exports[`LoadAssessmentButton should render per the snapshot: InsightsCommandButton props 1`] = `
{
+ "assessmentStoreData": undefined,
"children": "Load assessment",
+ "className": "___173moxi_0000000 f1t6ax4o fmntwad fgslppp f1dswenw f9hdeju f139oj5f f7otkfg",
"data-automation-id": "load-assessment-button",
- "iconProps": {
- "iconName": "FabricOpenFolderHorizontal",
+ "deps": undefined,
+ "handleLoadAssessmentButtonClick": [Function],
+ "insightsCommandButtonIconProps": {
+ "icon": ,
},
"onClick": [Function],
+ "tabStoreData": undefined,
}
`;
diff --git a/src/tests/unit/tests/DetailsView/components/__snapshots__/report-export-button.test.tsx.snap b/src/tests/unit/tests/DetailsView/components/__snapshots__/report-export-button.test.tsx.snap
index ecf04f37e6c..3518166909c 100644
--- a/src/tests/unit/tests/DetailsView/components/__snapshots__/report-export-button.test.tsx.snap
+++ b/src/tests/unit/tests/DetailsView/components/__snapshots__/report-export-button.test.tsx.snap
@@ -3,9 +3,10 @@
exports[`ReportExportButton renders ReportExportButton 1`] = `
Export result
@@ -15,11 +16,15 @@ exports[`ReportExportButton renders ReportExportButton 1`] = `
exports[`ReportExportButton renders ReportExportButton: InsightsCommandButton props 1`] = `
{
"children": "Export result",
- "componentRef": {},
+ "className": "___173moxi_0000000 f1t6ax4o fmntwad fgslppp f1dswenw f9hdeju f139oj5f f7otkfg",
"data-automation-id": "report-export-button",
- "iconProps": {
- "iconName": "Export",
+ "id": "report-export-button",
+ "insightsCommandButtonIconProps": {
+ "icon": ,
},
"onClick": [MockFunction],
+ "showReportExportDialog": [MockFunction],
}
`;
diff --git a/src/tests/unit/tests/DetailsView/components/__snapshots__/requirement-view-next-requirement-configuration.test.tsx.snap b/src/tests/unit/tests/DetailsView/components/__snapshots__/requirement-view-next-requirement-configuration.test.tsx.snap
index 04db392f552..66bbc99b99a 100644
--- a/src/tests/unit/tests/DetailsView/components/__snapshots__/requirement-view-next-requirement-configuration.test.tsx.snap
+++ b/src/tests/unit/tests/DetailsView/components/__snapshots__/requirement-view-next-requirement-configuration.test.tsx.snap
@@ -43,11 +43,14 @@ exports[`RequirementViewNextRequirementConfiguration getNextRequirementConfigura
`;
exports[`RequirementViewNextRequirementConfiguration getNextRequirementConfigurationForQuickAssess returns Complete button when it is last requirement in quickAssessRequirementKeys 1`] = `
-
+ shape="square"
+>
+ Complete
+
`;
exports[`RequirementViewNextRequirementConfiguration getNextRequirementConfigurationForQuickAssess returns NextRequirementButton with next requirement in quickAssessRequirementKeys 1`] = `
diff --git a/src/tests/unit/tests/DetailsView/components/__snapshots__/save-assessment-button.test.tsx.snap b/src/tests/unit/tests/DetailsView/components/__snapshots__/save-assessment-button.test.tsx.snap
index 091a9c81524..9b160201c0b 100644
--- a/src/tests/unit/tests/DetailsView/components/__snapshots__/save-assessment-button.test.tsx.snap
+++ b/src/tests/unit/tests/DetailsView/components/__snapshots__/save-assessment-button.test.tsx.snap
@@ -1,54 +1,16 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`SaveAssessmentButton on dialog enabled render snapshot of dialog 1`] = `
+exports[`SaveAssessmentButton should render per snapshot 1`] = `
-
Save assessment
-
-
-
- To load this assessment, use the
-
- Load assessment
-
- button in the Accessibility Insights Assessment command bar.
-