chore(deps): Upgrade react-router-dom to v6 MAASENG-1606 #13564
Annotations
8 errors
Lint:
src/app/kvm/views/LXDClusterDetails/LXDClusterHosts/LXDClusterHostsTable/LXDClusterHostsTable.tsx#L179
Expected 0 type arguments, but got 1.
|
Lint:
src/app/preferences/views/SSLKeys/AddSSLKey/AddSSLKey.test.tsx#L64
Type '{ children: Element; history: MemoryHistory; }' is not assignable to type 'IntrinsicAttributes & RouterProps'.
|
Lint:
src/testing/factories/state.ts#L649
Argument of type '{ pathname: string; search: string; state: null; hash: string; }' is not assignable to parameter of type 'Config<Location | null | undefined>'.
|
Lint:
src/testing/factories/state.ts#L658
Type '"POP"' is not assignable to type 'ArrayFactory<never> | Action | AttributeFunction<Action | null | undefined> | Factory<Action | null | undefined> | DerivedFunction<...> | null | undefined'.
|
Lint
Process completed with exit code 2.
|
src/app/Routes.test.tsx > Routes > redirects from Settings base URL to configuration:
src/app/Routes.test.tsx#L206
AssertionError: expected '/settings/configuration/general' to be '/settings/configuration' // Object.is equality
Ignored nodes: comments, script, style
<html>
<head>
<title>
General | MAAS
</title>
</head>
<body>
<div>
<main
class="l-main"
>
<div
class="l-main__content"
id="main-content"
>
<div
id="main-content-section"
>
<div>
<div
class="row"
>
<div
class="col-12"
>
<div
class=""
/>
<section
class="content-section"
>
<div
class="row"
>
<div
class="col-6"
>
<h1
class="content-section__title p-heading--4 section-header__title"
>
General
</h1>
<div
class="content-section__body"
/>
</div>
</div>
</section>
</div>
</div>
</div>
</div>
</div>
</main>
<aside
class="l-aside is-collapsed"
data-testid="app-side-panel"
id="aside-panel"
>
<section
class="content-section"
>
<div
class="row"
>
<div
class="col-12"
/>
</div>
</section>
</aside>
</div>
</body>
</html>
- Expected
+ Received
- /settings/configuration
+ /settings/configuration/general
❯ src/app/Routes.test.tsx:206:40
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:121:77
❯ Timeout.checkRealTimersCallback node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:115:16
|
src/app/subnets/views/SubnetDetails/SubnetDetailsHeader/SubnetActionForms/components/DeleteSubnet/DeleteSubnet.test.tsx > redirects on save:
src/app/subnets/views/SubnetDetails/SubnetDetailsHeader/SubnetActionForms/components/DeleteSubnet/DeleteSubnet.test.tsx#L215
AssertionError: expected '/subnet/1' to deeply equal '/networks'
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<section
aria-labelledby="bamDPZdZWICvCcyseunsv"
class="u-no-padding p-strip is-shallow"
data-testid="titled-section"
>
<div
class="row"
>
<div
class="col-12"
>
<div
class="u-flex--between u-flex--wrap"
data-testid="has-fullspan-title"
>
<div
class="u-visually-hidden"
>
<h2
class="p-heading--4"
id="bamDPZdZWICvCcyseunsv"
>
Delete subnet?
</h2>
</div>
</div>
<form
aria-label="Delete subnet"
class=""
>
<section
class="content-section"
>
<div
class="row"
>
<div
class="col-12"
>
<div
class="content-section__body"
>
<div
class="p-notification--caution is-borderless"
>
<div
class="p-notification__content"
>
<p
class="p-notification__message"
>
Are you sure you want to delete this subnet?
<br />
Beware IP addresses on devices on this subnet might not be retained.
</p>
</div>
</div>
</div>
<footer
class="content-section__footer"
>
<div
class="formik-form-buttons"
data-testid="buttons-wrapper"
>
<button
class="p-button--base formik-form-buttons__button"
data-testid="cancel-action"
type="button"
>
Cancel
</button>
<button
class="formik-form-buttons__button p-action-button p-button--negative"
type="submit"
>
Delete
</button>
</div>
</footer>
</div>
</div>
</section>
</form>
</div>
</div>
</section>
</div>
</body>
</html>
- Expected
+ Received
- /networks
+ /subnet/1
❯ src/app/subnets/views/SubnetDetails/SubnetDetailsHeader/SubnetActionForms/components/DeleteSubnet/DeleteSubnet.test.tsx:215:39
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:121:77
❯ Timeout.checkRealTimersCallback node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:115:16
|
Test
Process completed with exit code 1.
|