test(FN-2532): expand SettingsModal remote access coverage

- Add Step 1 tests for remote provider selection and lifecycle state handling in SettingsModal
- Add Step 2 tests for remote token flows plus URL and QR rendering/validation scenarios
- Refactor existing SettingsModal test structure to reduce duplication and improve remote settings assertions
- Strengthen regression coverage for remote access UX edge cases in dashboard settings
This commit is contained in:
Fusion
2026-04-26 06:59:03 -07:00
committed by gsxdsm
parent 7919745422
commit a16a6a32d5
2 changed files with 190 additions and 93 deletions

View File

@@ -48,6 +48,12 @@ describe("TaskStore", () => {
});
afterEach(async () => {
// Some watcher/polling tests can leave an in-flight poll tick queued right
// before teardown. Stop watching first and yield once so pending callbacks
// settle before removing temp dirs.
store.stopWatching();
await new Promise<void>((resolve) => setImmediate(resolve));
store.close();
await rm(rootDir, { recursive: true, force: true, maxRetries: 5, retryDelay: 50 });
await rm(globalDir, { recursive: true, force: true, maxRetries: 5, retryDelay: 50 });