feat: add ManualDNSChallenge component and related hooks for manual DNS challenge management

- Implemented `useManualChallenge`, `useChallengePoll`, and `useManualChallengeMutations` hooks for managing manual DNS challenges.
- Created tests for the `useManualChallenge` hooks to ensure correct fetching and mutation behavior.
- Added `ManualDNSChallenge` component for displaying challenge details and actions.
- Developed end-to-end tests for the Manual DNS Provider feature, covering provider selection, challenge UI, and accessibility compliance.
- Included error handling tests for verification failures and network errors.
This commit is contained in:
GitHub Actions
2026-01-12 04:01:40 +00:00
parent a199dfd079
commit d7939bed70
132 changed files with 8680 additions and 878 deletions

View File

@@ -85,7 +85,7 @@ func TestConnect_IntegrityCheckCorrupted(t *testing.T) {
// Close the database
sqlDB, _ := db.DB()
sqlDB.Close()
_ = sqlDB.Close()
// Corrupt the database file by overwriting with invalid data
// We'll overwrite the middle of the file to corrupt it
@@ -151,7 +151,7 @@ func TestConnect_CorruptedDatabase_FullIntegrationScenario(t *testing.T) {
// Close database
sqlDB, _ := db.DB()
sqlDB.Close()
_ = sqlDB.Close()
// Corrupt the database
corruptDB(t, dbPath)
@@ -180,7 +180,7 @@ func corruptDB(t *testing.T, dbPath string) {
// Open and corrupt file
f, err := os.OpenFile(dbPath, os.O_RDWR, 0o644)
require.NoError(t, err)
defer f.Close()
defer func() { _ = f.Close() }()
// Get file size
stat, err := f.Stat()