Fix flake

This commit is contained in:
Dustin Brett 2025-08-18 23:48:46 -07:00
parent 1b5336c11d
commit bbb3fb60b4
3 changed files with 6 additions and 8 deletions

View File

@ -57,7 +57,7 @@ const ResultSection: FC<ResultsSectionProps> = ({
) : (
results.map(({ ref }) => (
<ResultEntry
key={ref}
key={`${title}-${ref}`}
active={activeItem === ref}
details={details}
openApp={openApp}

View File

@ -301,14 +301,11 @@ test.describe("has commands", () => {
"no headless Pyodide support"
);
const randomNumber = Math.floor(Math.random() * 1000);
const randomNumber2 = Math.floor(Math.random() * 1000);
await sendToTerminal({ page }, `python ${randomNumber}+${randomNumber2}`);
await terminalHasText({ page }, `${randomNumber + randomNumber2}`);
await sendToTerminal({ page }, "py");
await terminalHasText({ page }, /\d+\.\d+\.\d+ \(main, .*\) \[Clang/);
await expect(async () =>
terminalHasText({ page }, /\d+\.\d+\.\d+ \(main, .*\) \[Clang/)
).toPass();
});
test("qjs", async ({ page }) => {

View File

@ -25,6 +25,7 @@ export const EXCLUDED_CONSOLE_LOGS = (
"Cannot update a component (`Unknown`) while rendering a different component",
"browserContext.",
"Web browser doesn't support Web Audio API",
"Slow execution detected",
];
if (browserName === "webkit") {