diff --git a/src/DetailsView/components/adhoc-tab-stops-test-view.tsx b/src/DetailsView/components/adhoc-tab-stops-test-view.tsx index 550808c8d05..61fff26c3de 100644 --- a/src/DetailsView/components/adhoc-tab-stops-test-view.tsx +++ b/src/DetailsView/components/adhoc-tab-stops-test-view.tsx @@ -196,7 +196,6 @@ export const AdhocTabStopsTestView = NamedFC( diff --git a/src/DetailsView/components/assessment-issues-test-view.tsx b/src/DetailsView/components/assessment-issues-test-view.tsx index 54a1f1b5472..fc80f4799bf 100644 --- a/src/DetailsView/components/assessment-issues-test-view.tsx +++ b/src/DetailsView/components/assessment-issues-test-view.tsx @@ -35,6 +35,7 @@ export type AssessmentIssuesTestViewDeps = { export type AssessmentIssuesTestViewProps = { deps: AssessmentIssuesTestViewDeps; assessmentStoreData: AssessmentStoreData; + includeStepsText?: boolean; } & Omit; export class AssessmentIssuesTestView extends React.Component { diff --git a/src/DetailsView/components/left-nav/details-view-left-nav.tsx b/src/DetailsView/components/left-nav/details-view-left-nav.tsx index eb9e86109a8..9a4f8a09431 100644 --- a/src/DetailsView/components/left-nav/details-view-left-nav.tsx +++ b/src/DetailsView/components/left-nav/details-view-left-nav.tsx @@ -67,11 +67,7 @@ export const DetailsViewLeftNav = NamedFC('DetailsViewL const leftNav: JSX.Element = (
- + ); diff --git a/src/popup/handlers/launch-panel-header-click-handler.ts b/src/popup/handlers/launch-panel-header-click-handler.ts index cb94a48afa5..493e9440f36 100644 --- a/src/popup/handlers/launch-panel-header-click-handler.ts +++ b/src/popup/handlers/launch-panel-header-click-handler.ts @@ -26,7 +26,6 @@ export class LaunchPanelHeaderClickHandler { public onOpenContextualMenu(header: LaunchPanelHeader, event: React.MouseEvent): void { header.setState({ target: event.currentTarget, - isContextMenuVisible: true, }); } diff --git a/src/reports/components/fast-pass-report.tsx b/src/reports/components/fast-pass-report.tsx index b9215c913b3..1ef85a300a7 100644 --- a/src/reports/components/fast-pass-report.tsx +++ b/src/reports/components/fast-pass-report.tsx @@ -50,10 +50,7 @@ export const FastPassReport = NamedFC('FastPassReport', pro - + @@ -66,7 +63,6 @@ export const FastPassReport = NamedFC('FastPassReport', pro tabStopsTestViewController: undefined, ...props.deps, }} - featureFlagStoreData={props.deps.featureFlagStoreData} tabStopRequirementState={props.results.tabStops} alwaysRenderSection={true} /> diff --git a/src/reports/components/report-sections/collapsible-url-result-section.tsx b/src/reports/components/report-sections/collapsible-url-result-section.tsx index d6e15c0df81..99416c2e26d 100644 --- a/src/reports/components/report-sections/collapsible-url-result-section.tsx +++ b/src/reports/components/report-sections/collapsible-url-result-section.tsx @@ -28,7 +28,6 @@ export const CollapsibleUrlResultSection = NamedFC, content, headingLevel: 3, - deps: null, }); return
{CollapsibleContent}
; diff --git a/src/tests/unit/tests/DetailsView/components/__snapshots__/details-view-command-bar.test.tsx.snap b/src/tests/unit/tests/DetailsView/components/__snapshots__/details-view-command-bar.test.tsx.snap index b89f72bce62..6bab4280c53 100644 --- a/src/tests/unit/tests/DetailsView/components/__snapshots__/details-view-command-bar.test.tsx.snap +++ b/src/tests/unit/tests/DetailsView/components/__snapshots__/details-view-command-bar.test.tsx.snap @@ -88,7 +88,6 @@ exports[`DetailsViewCommandBar renders invalid load assessment dialog: invalid l
$ " \` ' 1`] = ` > = { key: 'test-key', - testName: 'test-name', rules: ['rule-1', 'rule-2'], testType: -1 as VisualizationType, }; diff --git a/src/tests/unit/tests/popup/components/__snapshots__/launch-panel-header.test.tsx.snap b/src/tests/unit/tests/popup/components/__snapshots__/launch-panel-header.test.tsx.snap index 0b737623c4e..14ac58546c8 100644 --- a/src/tests/unit/tests/popup/components/__snapshots__/launch-panel-header.test.tsx.snap +++ b/src/tests/unit/tests/popup/components/__snapshots__/launch-panel-header.test.tsx.snap @@ -17,7 +17,6 @@ exports[`LaunchPanelHeaderTest renders 1`] = ` /> @@ -58,7 +57,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "launchPanelHeaderClickHandler": {}, "popupActionMessageCreator": {}, }, - "featureFlagData": {}, "header": LaunchPanelHeader { "_reactInternalFiber": FiberNode { "_debugHookTypes": null, @@ -412,7 +410,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "launchPanelHeaderClickHandler": {}, "popupActionMessageCreator": {}, }, - "featureFlagData": {}, "header": [Circular], "popupWindow": {}, }, @@ -426,7 +423,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "launchPanelHeaderClickHandler": {}, "popupActionMessageCreator": {}, }, - "featureFlagData": {}, "header": [Circular], "popupWindow": {}, }, @@ -436,7 +432,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "sibling": null, "stateNode": , @@ -466,7 +461,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - featureFlagData={{}} header={[Circular]} popupWindow={{}} />, @@ -508,7 +502,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - featureFlagData={{}} header={[Circular]} popupWindow={{}} />, @@ -682,7 +675,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - featureFlagData={{}} header={[Circular]} popupWindow={{}} /> @@ -727,7 +719,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - featureFlagData={{}} header={[Circular]} popupWindow={{}} /> @@ -754,7 +745,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` /> @@ -804,7 +794,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - featureFlagData={{}} header={[Circular]} popupWindow={{}} /> @@ -855,7 +844,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - featureFlagData={{}} header={[Circular]} popupWindow={{}} /> @@ -903,7 +891,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - featureFlagData={{}} header={[Circular]} popupWindow={{}} /> @@ -948,7 +935,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - featureFlagData={{}} header={[Circular]} popupWindow={{}} /> @@ -1000,7 +986,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - featureFlagData={{}} header={[Circular]} popupWindow={{}} /> @@ -1051,7 +1036,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - featureFlagData={{}} header={[Circular]} popupWindow={{}} /> @@ -1077,11 +1061,8 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "launchPanelHeaderClickHandler": {}, "popupActionMessageCreator": {}, }, - "dropdownClickHandler": {}, "featureFlags": {}, "openAdhocToolsPanel": [Function], - "openFeedbackDialog": {}, - "openGettingStartedDialog": {}, "popupWindow": {}, "subtitle": "test subtitle", "title": "test title", @@ -1095,11 +1076,8 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "launchPanelHeaderClickHandler": {}, "popupActionMessageCreator": {}, }, - "dropdownClickHandler": {}, "featureFlags": {}, "openAdhocToolsPanel": [Function], - "openFeedbackDialog": {}, - "openGettingStartedDialog": {}, "popupWindow": {}, "subtitle": "test subtitle", "title": "test title", @@ -1163,7 +1141,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` /> @@ -1206,11 +1183,8 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - dropdownClickHandler={{}} featureFlags={{}} openAdhocToolsPanel={[Function]} - openFeedbackDialog={{}} - openGettingStartedDialog={{}} popupWindow={{}} subtitle="test subtitle" title="test title" @@ -1247,11 +1221,8 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - dropdownClickHandler={{}} featureFlags={{}} openAdhocToolsPanel={[Function]} - openFeedbackDialog={{}} - openGettingStartedDialog={{}} popupWindow={{}} subtitle="test subtitle" title="test title" @@ -1284,7 +1255,6 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` /> @@ -1324,11 +1294,8 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "popupActionMessageCreator": {}, } } - dropdownClickHandler={{}} featureFlags={{}} openAdhocToolsPanel={[Function]} - openFeedbackDialog={{}} - openGettingStartedDialog={{}} popupWindow={{}} subtitle="test subtitle" title="test title" @@ -1363,11 +1330,8 @@ exports[`LaunchPanelHeaderTest renders: HamburgerMenuButton props 1`] = ` "launchPanelHeaderClickHandler": {}, "popupActionMessageCreator": {}, }, - "dropdownClickHandler": {}, "featureFlags": {}, "openAdhocToolsPanel": [Function], - "openFeedbackDialog": {}, - "openGettingStartedDialog": {}, "popupWindow": {}, "subtitle": "test subtitle", "title": "test title", diff --git a/src/tests/unit/tests/popup/components/launch-panel-header.test.tsx b/src/tests/unit/tests/popup/components/launch-panel-header.test.tsx index bcc0756740f..8bf07333445 100644 --- a/src/tests/unit/tests/popup/components/launch-panel-header.test.tsx +++ b/src/tests/unit/tests/popup/components/launch-panel-header.test.tsx @@ -45,12 +45,9 @@ describe('LaunchPanelHeaderTest', () => { deps, title: 'test title', subtitle: 'test subtitle', - openGettingStartedDialog: {} as any, - openFeedbackDialog: {} as any, popupWindow: {} as Window, featureFlags: {} as FeatureFlagStoreData, openAdhocToolsPanel: () => {}, - dropdownClickHandler: {} as DropdownClickHandler, }; }); diff --git a/src/tests/unit/tests/popup/handlers/launch-panel-header-click-handler.test.ts b/src/tests/unit/tests/popup/handlers/launch-panel-header-click-handler.test.ts index ec744185ec0..e15a999667f 100644 --- a/src/tests/unit/tests/popup/handlers/launch-panel-header-click-handler.test.ts +++ b/src/tests/unit/tests/popup/handlers/launch-panel-header-click-handler.test.ts @@ -57,7 +57,6 @@ describe('FeedbackMenuClickHandlerTest', () => { const setStateMock = Mock.ofInstance((state: any) => {}); const stateStub = { target: 'currentTarget', - isContextMenuVisible: true, }; const eventStub = { currentTarget: 'currentTarget', diff --git a/src/tests/unit/tests/reports/components/report-sections/collapsible-url-result-section.test.tsx b/src/tests/unit/tests/reports/components/report-sections/collapsible-url-result-section.test.tsx index 9a59d5cc9fb..a74b5459ab2 100644 --- a/src/tests/unit/tests/reports/components/report-sections/collapsible-url-result-section.test.tsx +++ b/src/tests/unit/tests/reports/components/report-sections/collapsible-url-result-section.test.tsx @@ -7,7 +7,7 @@ import { CollapsibleUrlResultSection, CollapsibleUrlResultSectionProps, } from 'reports/components/report-sections/collapsible-url-result-section'; -import { It, Mock } from 'typemoq'; +import { It, Mock, Times } from 'typemoq'; describe('CollapsibleUrlResultSection', () => { it('renders', () => { @@ -25,14 +25,15 @@ describe('CollapsibleUrlResultSection', () => { const expectedCollapsibleControlProps: Partial = { id: containerId, headingLevel: 3, - deps: null, }; collapsibleControlMock .setup(cc => cc(It.isObjectWith(expectedCollapsibleControlProps))) - .returns(() =>
Collapsible component
); + .returns(() =>
Collapsible component
) + .verifiable(Times.once()); const wrapper = render(); expect(wrapper.asFragment()).toMatchSnapshot(); + collapsibleControlMock.verifyAll(); }); }); diff --git a/src/tests/unit/tests/reports/summary-report-html-generator.test.tsx b/src/tests/unit/tests/reports/summary-report-html-generator.test.tsx index 50b27c7b801..ec239261a17 100644 --- a/src/tests/unit/tests/reports/summary-report-html-generator.test.tsx +++ b/src/tests/unit/tests/reports/summary-report-html-generator.test.tsx @@ -63,7 +63,6 @@ describe('ReportHtmlGenerator', () => { }; const results: SummaryScanResults = { - deps, failed: [ { url: `${baseUrl}/failed`,