ci: pass frozen UI test options to Vitest (#104758)

This commit is contained in:
Peter Steinberger
2026-07-11 15:54:44 -07:00
committed by GitHub
parent 266d49cddb
commit 08498f9828
2 changed files with 3 additions and 2 deletions

View File

@@ -1052,7 +1052,7 @@ jobs:
if [[ "$COMPATIBILITY_TARGET" == "true" ]]; then
# Frozen targets can contain timing-sensitive tests fixed on current main.
# Preserve one retry, but let their browser helpers use their 10-second waits.
pnpm --dir ui test -- --retry=1 --testTimeout=10000
pnpm --dir ui test --retry=1 --testTimeout=10000
else
pnpm --dir ui test
fi

View File

@@ -1875,7 +1875,8 @@ describe("ci workflow guards", () => {
"${{ needs.preflight.outputs.compatibility_target }}",
);
expect(uiTest.run).toContain('if [[ "$COMPATIBILITY_TARGET" == "true" ]]');
expect(uiTest.run).toContain("pnpm --dir ui test -- --retry=1 --testTimeout=10000");
expect(uiTest.run).toContain("pnpm --dir ui test --retry=1 --testTimeout=10000");
expect(uiTest.run).not.toContain("pnpm --dir ui test -- --retry");
expect(uiTest.run).toContain("pnpm --dir ui test");
});