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