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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user