Fully move backup integration test to mock server

This commit is contained in:
Fedor Indutny 2024-10-07 12:58:59 -07:00 committed by GitHub
parent 12f28448b2
commit bad065859c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 508 additions and 232 deletions

View file

@ -2,10 +2,11 @@
// SPDX-License-Identifier: AGPL-3.0-only
import * as RemoteConfig from '../RemoteConfig';
import { isTestOrMockEnvironment } from '../environment';
import { isStagingServer } from './isStagingServer';
export function isBackupEnabled(): boolean {
if (isStagingServer()) {
if (isStagingServer() || isTestOrMockEnvironment()) {
return true;
}
return Boolean(RemoteConfig.isEnabled('desktop.backup.credentialFetch'));