Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

fix(test): use getAllByText for Hero test — multiple elements match the pattern

Beenu Arora1a31078de61e
diff --git a/apps/web/src/components/landing/Hero.test.tsx b/apps/web/src/components/landing/Hero.test.tsx
index e4eed86e3..febc421ae 100644
--- a/apps/web/src/components/landing/Hero.test.tsx
+++ b/apps/web/src/components/landing/Hero.test.tsx
@@ -49,7 +49,7 @@ describe('Hero', () => {
// rather than the older "every commit" wording.
render(<Hero />);
- expect(screen.getByText(/every PR to/i)).toBeInTheDocument();
+ expect(screen.getAllByText(/every PR to/i).length).toBeGreaterThan(0);
expect(screen.queryByText(/every commit/i)).toBeNull();
});
});