fixed tests
This commit is contained in:
parent
9907cef5d2
commit
b7d96fb3da
3 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ export const NewClientForm = () => {
|
|||
try {
|
||||
const newClient = await adminClient.clients.create({ ...client });
|
||||
addAlert(t("createSuccess"), AlertVariant.success);
|
||||
history.push(`/${realm}/clients/${newClient.id}`);
|
||||
history.push(`/${realm}/clients/${newClient.id}/settings`);
|
||||
} catch (error) {
|
||||
addAlert(t("createError", { error }), AlertVariant.danger);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import { MemoryRouter } from "react-router-dom";
|
|||
describe("BreadCrumbs tests", () => {
|
||||
it("couple of crumbs", () => {
|
||||
const crumbs = mount(
|
||||
<MemoryRouter initialEntries={["/master/clients/1234"]}>
|
||||
<MemoryRouter initialEntries={["/master/clients/1234/settings"]}>
|
||||
<PageBreadCrumbs />
|
||||
</MemoryRouter>
|
||||
);
|
||||
|
|
|
@ -136,7 +136,7 @@ exports[`BreadCrumbs tests couple of crumbs 1`] = `
|
|||
</AngleRightIcon>
|
||||
</span>
|
||||
<span
|
||||
key="/master/clients/1234"
|
||||
key="/master/clients/1234/settings"
|
||||
>
|
||||
Client details
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue