mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-04 19:21:51 +00:00
fix(ui): refine scans tabs and provider launch flow (#11407)
This commit is contained in:
@@ -3,6 +3,7 @@ import type { ComponentProps } from "react";
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
import { useProviderWizardStore } from "@/store/provider-wizard/store";
|
||||
import { SCAN_JOBS_TAB } from "@/types";
|
||||
|
||||
import { LaunchStep } from "./launch-step";
|
||||
|
||||
@@ -81,5 +82,9 @@ describe("LaunchStep", () => {
|
||||
title: "Scan Launched",
|
||||
}),
|
||||
);
|
||||
const toastPayload = toastMock.mock.calls[0]?.[0];
|
||||
expect(toastPayload.action.props.children.props.href).toBe(
|
||||
`/scans?tab=${SCAN_JOBS_TAB.ACTIVE}`,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user