chore(deps): Upgrade react-router-dom to v6 MAASENG-1606 #13565
Annotations
4 errors
src/root-reducer.test.ts > rootReducer > should reset app to initial state on LOGOUT_SUCCESS, except status which
resets to authenticating = false:
src/root-reducer.test.ts#L18
Error: Snapshot `rootReducer > should reset app to initial state on LOGOUT_SUCCESS, except status which
resets to authenticating = false 1` mismatched
- Expected
+ Received
@@ -272,10 +272,11 @@
},
"router": {
"action": "POP",
"location": {
"hash": "",
+ "key": "",
"pathname": "/",
"search": "",
"state": null,
},
},
❯ src/root-reducer.test.ts:18:22
|
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="g-vgdvpt01nbUpLz4_Mun"
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="g-vgdvpt01nbUpLz4_Mun"
>
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.
|