Skip to content

Commit f95a554

Browse files
committed
cypress: add handler for update_feature_flags in support mocks
Add an async handler for 'update_feature_flags' to the Cypress e2e support index mocks. This prevents unhandled calls during tests by returning a resolved promise. The change inserts a new case in the ipcRenderer.invoke mock switch alongside existing get_app_settings and others. Only test support code modified.
1 parent 8cdf3de commit f95a554

File tree

1 file changed

+2
-0
lines changed
  • apps/desktop/cypress/e2e/support

1 file changed

+2
-0
lines changed

apps/desktop/cypress/e2e/support/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ Cypress.on('window:before:load', (win) => {
159159
return MOCK_USER;
160160
case 'plugin:window|theme':
161161
return 'light';
162+
case 'update_feature_flags':
163+
return await Promise.resolve();
162164
case 'get_app_settings':
163165
return MOCK_APP_SETTINGS;
164166
case 'plugin:event|unlisten':

0 commit comments

Comments
 (0)