test: fault injection, DNS/HTTPS provisioning, CI sharding, and a11y navigation tests#676
Open
Mystery-CLI wants to merge 4 commits into
Open
test: fault injection, DNS/HTTPS provisioning, CI sharding, and a11y navigation tests#676Mystery-CLI wants to merge 4 commits into
Mystery-CLI wants to merge 4 commits into
Conversation
- Simulate failures for database, Stellar, Vercel, and Stripe - Test partial failure scenarios (one dependency down, others healthy) - Test combined failures (network + analytics simultaneously) - Assert correct aggregate health status reporting - Document the health check dependency graph in service JSDoc Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… provisioning - Test DNS record validation: unsupported type (A record), invalid JSON body, non-string token - Test DNS verification failure paths: token mismatch, wrong CNAME target, upstream DNS errors - Test certificate provisioning state polling: pending → issued → active states - Assert correct handling of AUTH_FAILED, unexpected addDomain errors - Test Retry-After rounding and omission when retryAfterMs is undefined - Test GET provisioning error state and getCertificate failure during polling Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Configure Vitest shard support across monorepo (root + per-app configs) - Add sequence.shuffle: false to all configs for deterministic shard execution - Add .github/workflows/test-sharding.yml with 4-shard backend matrix and 2-shard frontend matrix - Include coverage artifact upload and merge-coverage aggregation job - Document sharding strategy, shard count rationale, and shard-safety requirements Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add Sidebar tests: nav landmark, aria-current active state, avatar alt text (WCAG 2.4.1, 2.4.3, 1.1.1) - Add MobileDrawer tests: aria-label, close button label, Escape key closes, backdrop aria-hidden, click-to-close (WCAG 2.1.2, 4.1.2, 1.3.1) - Extend NavItem tests: aria-current page, disabled no-link, badge text (WCAG 2.4.3, 4.1.2) - Extend Breadcrumbs tests: nav aria-label, last crumb plain text, empty items (WCAG 2.4.8) - Reference WCAG 2.1 AA success criteria in all test descriptions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@Mystery-CLI Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #580
Closes #579
Closes #578
Closes #577
Changes
#580 — Fault injection test suite for Health Monitor Service
apps/backend/src/services/health-monitor.fault-injection.test.tswith 20+ test cases covering:deployment_urlfield, null active-deployments list, null owner lookuphealth-monitor.service.tsdocumenting all external dependencies and failure modes#579 — Vercel DNS Verification and HTTPS Certificate Provisioning
Extended
apps/backend/src/app/api/deployments/[id]/dns/verify/route.test.ts:verified: false+TOKEN_MISMATCHwhen TXT value does not matchverified: false+WRONG_TARGETwhen CNAME points to wrong hostExtended
apps/backend/src/app/api/deployments/[id]/https/route.test.ts:pendingimmediately after domain addAUTH_FAILEDmaps to 500addDomainerror returns 500getCertificatethrowing after successfuladdDomainpropagatesRetry-Afterrounds fractionalretryAfterMsup to nearest secondRetry-Afterheader omitted whenretryAfterMsis undefinedissuedcert state during provisioning (polling cycle 1)activecert state withexpiresAtonce provisioning completeserrorstate when Vercel-side provisioning fails (e.g. CAA mismatch)getCertificatethrows during pollingvercel_project_idis missing#578 — Parallelized Test Sharding Infrastructure for CI
vitest.config.ts(root): addedsequence.shuffle: falseand detailed sharding documentation (CLI usage, shard count rationale, shard-safety rules)apps/backend/vitest.config.ts: addedsequence.shuffle: falsewith shard-safety commentapps/frontend/vitest.config.ts: addedsequence.shuffle: falsewith shard-safety comment.github/workflows/test-sharding.yml:--shard=1/4…4/4),fail-fast: falsemerge-coveragejob downloads all shard artifacts and merges viavitest merge-reports#577 — Accessibility Compliance Tests for Dashboard Navigation
Extended
apps/frontend/tests/accessibility/components.a11y.test.ts:NavItem (WCAG 2.4.3, 4.1.2, 2.4.6, 1.1.1):
aria-current="page"; inactive link does notBreadcrumbs (WCAG 2.4.8, 4.1.2):
navhasaria-label="Breadcrumb"for landmark identificationSidebar (WCAG 2.4.1, 2.4.3, 1.3.1, 1.1.1):
<aside>contains<nav>landmark (bypass blocks)aria-current="page"(mockedusePathname)altattributeMobileDrawer (WCAG 2.1.2, 4.1.2, 1.3.1, 1.1.1):
<aside>hasaria-label="Mobile navigation"aria-label="Close menu"(icon-only button)onClose(no keyboard trap)aria-hidden="true"onCloseonClosealttext🤖 Generated with Claude Code