fixed tests

This commit is contained in:
Erik Jan de Wit 2021-03-03 09:10:30 +01:00
parent 9907cef5d2
commit b7d96fb3da
3 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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>
);

View file

@ -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>