mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-09 21:14:22 +00:00
feat(ui): connect AWS accounts in a single wizard step (#12852)
Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
This commit is contained in:
co-authored by
alejandrobailo
parent
50a9138bea
commit
ea36f12a01
@@ -29,6 +29,7 @@ describe("SidePanelTrigger discovery callout", () => {
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
document.body.classList.remove("driver-active");
|
||||
vi.useRealTimers();
|
||||
});
|
||||
|
||||
@@ -49,6 +50,20 @@ describe("SidePanelTrigger discovery callout", () => {
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("stays usable above a running product tour", () => {
|
||||
// Given: driver.js dims and disables everything outside its spotlight.
|
||||
document.body.classList.add("driver-active");
|
||||
render(<SidePanelTrigger />);
|
||||
|
||||
// When
|
||||
act(() => vi.advanceTimersByTime(HINT_DELAY_MS));
|
||||
|
||||
// Then: the callout opts out of that, so it is visible and dismissible.
|
||||
expect(screen.getByTestId("side-panel-ai-hint")).toHaveAttribute(
|
||||
"data-tour-interactive",
|
||||
);
|
||||
});
|
||||
|
||||
it("never surfaces the callout again once seen", () => {
|
||||
// Given: a returning user
|
||||
useSidePanelStore.setState({ hasSeenAiTriggerHint: true });
|
||||
|
||||
Reference in New Issue
Block a user