Skip to content

feat(fluentUI-migration): ActionButton fluentui v8 to v9 migration #8087

feat(fluentUI-migration): ActionButton fluentui v8 to v9 migration

feat(fluentUI-migration): ActionButton fluentui v8 to v9 migration #8087

Triggered via pull request August 28, 2024 12:07
Status Failure
Total duration 5m 48s
Artifacts 6

ci.yml

on: pull_request
Matrix: unit-tests
Matrix: e2e-web-tests
publish-code-coverage
0s
publish-code-coverage
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 2 warnings
lints
Process completed with exit code 1.
build: src/DetailsView/components/command-bar-buttons-menu.tsx#L13
'NamedFC' is declared but its value is never read.
build: src/DetailsView/components/report-export-button.tsx#L7
'ButtonRefFunction' is declared but its value is never read.
build: src/DetailsView/components/start-over-component-factory.tsx#L10
'ButtonRefFunction' is declared but its value is never read.
build: src/DetailsView/components/start-over-dropdown.tsx#L17
'ButtonRefFunction' is declared but its value is never read.
build: src/DetailsView/components/transfer-to-assessment-button.tsx#L8
'ButtonRefFunction' is declared but its value is never read.
build: src/tests/unit/tests/DetailsView/components/report-export-button.test.tsx#L28
Type 'ButtonRefFunction' is not assignable to type 'RefObject<HTMLAnchorElement | HTMLButtonElement>'.
build: src/tests/unit/tests/DetailsView/components/save-assessment-button.test.tsx#L40
Property 'buttonRef' is missing in type '{ deps: { getAssessmentActionMessageCreator: () => AssessmentActionMessageCreator; userConfigMessageCreator: UserConfigMessageCreator; }; download: string; href: string; userConfigurationStoreData: UserConfigurationStoreData; handleSaveAssesmentButtonClick: (event: React.MouseEvent<any>) => void; }' but required in type 'SaveAssessmentButtonProps'.
build: src/tests/unit/tests/DetailsView/components/start-over-dropdown.test.tsx#L65
Type 'ButtonRefFunction' is not assignable to type 'RefObject<HTMLButtonElement>'.
build: src/tests/unit/tests/DetailsView/components/start-over-dropdown.test.tsx#L101
Type 'ButtonRefFunction' is not assignable to type 'RefObject<HTMLButtonElement>'.
build
Process completed with exit code 2.
DetailsViewCommandBar › renders with buttons collapsed into a menu: src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx#L330
expect(received).toMatchSnapshot() Snapshot name: `DetailsViewCommandBar renders with buttons collapsed into a menu 1` - Snapshot - 0 + Received + 1 @@ -24,10 +24,11 @@ > command-bar-test-tab-title </span> </mock-newtablinkwithtooltip> </div> + <mock-commandbarbuttonsmenu /> <mock-exportdialog description="" featureflagstoredata="[object Object]" htmlexportdata="" htmlfilename="" at Object.toMatchSnapshot (src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx:330:43)
DetailsViewCommandBar › renders save assessment dialog: src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx#L377
TypeError: Cannot read properties of undefined (reading 'isOpen') at Object.<anonymous> (src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx:377:72)
DetailsViewCommandBar › renders start test over dialog: src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx#L413
TypeError: Cannot read properties of undefined (reading 'dialogState') at Object.<anonymous> (src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx:413:67)
DetailsViewCommandBar › renders start assessment over dialog: src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx#L428
TypeError: Cannot read properties of undefined (reading 'dialogState') at Object.<anonymous> (src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx:428:67)
DetailsViewCommandBar › Button focus › do not change focus to transfer assessment button when focus ref is not set: src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx#L513
TypeError: setRef is not a function at Object.setRef (src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx:513:13)
DetailsViewCommandBar › Button focus › do not change focus to start over button when focus ref is not set: src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx#L548
TypeError: Cannot read properties of undefined (reading 'dismissDialog') at src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx:548:57 at node_modules/@testing-library/react/dist/act-compat.js:48:24 at act (node_modules/react/cjs/react.development.js:2512:16) at node_modules/@testing-library/react/dist/act-compat.js:47:25 at Object.<anonymous> (src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx:547:16)
DetailsViewCommandBar › Button focus › focus start over button when focus ref is set: src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx#L574
TypeError: Cannot read properties of undefined (reading 'dismissDialog') at src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx:574:57 at node_modules/@testing-library/react/dist/act-compat.js:48:24 at act (node_modules/react/cjs/react.development.js:2512:16) at node_modules/@testing-library/react/dist/act-compat.js:47:25 at Object.<anonymous> (src/tests/unit/tests/DetailsView/components/details-view-command-bar.test.tsx:573:16)
unit-tests (1/2)
Process completed with exit code 1.
Details View -> Overview Page › should display pinned results when loading web@2.26.0-valid-mixed-results.a11ywebassessment: src/tests/end-to-end/common/page-controllers/page.ts#L102
page.waitForSelector: Timeout 10000ms exceeded. Call log: - waiting for locator('[data-automation-id="outcome-summary-bar"]:not([aria-label="0% Passed, 100% Incomplete, 0% Failed"])') to be visible at waitForSelector (src/tests/end-to-end/common/page-controllers/page.ts:102:43) at wrappedFunction (src/tests/end-to-end/common/screenshot-on-error.ts:22:22) at DetailsViewPage.screenshotOnError (src/tests/end-to-end/common/page-controllers/page.ts:200:39) at DetailsViewPage.screenshotOnError (src/tests/end-to-end/common/page-controllers/page.ts:100:27) at waitForSelector (src/tests/end-to-end/tests/details-view/overview.test.ts:62:28)
e2e-web-tests (2/2)
Process completed with exit code 1.
codeql
This run of the CodeQL Action does not have permission to access Code Scanning API endpoints. As a result, it will not be opted into any experimental features. This could be because the Action is running on a pull request from a fork. If not, please ensure the Action has the 'security-events: write' permission. Details: Resource not accessible by integration
codeql
Feature flags do not specify a default CLI version. Falling back to the CLI version shipped with the Action. This is 2.18.2.

Artifacts

Produced during runtime
Name Size
e2e-report-tests-results
553 Bytes
e2e-web-tests-1-results
6.84 KB
e2e-web-tests-2-debug-logs
77.2 MB
e2e-web-tests-2-results
2.34 KB
unit-tests-1-results
155 KB
unit-tests-2-results
156 KB