Export/import attachments in integration tests

This commit is contained in:
Fedor Indutny 2024-10-11 12:14:28 -07:00 committed by GitHub
parent d42df4b201
commit 9ff6c75eb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 292 additions and 116 deletions

View file

@ -7,6 +7,7 @@ import pTimeout, { TimeoutError } from 'p-timeout';
import type { StateType as RootStateType } from '../reducer';
import {
InstallScreenBackupStep,
InstallScreenStep,
InstallScreenError,
InstallScreenQRCodeError,
@ -62,6 +63,7 @@ export type InstallerStateType = ReadonlyDeep<
}
| {
step: InstallScreenStep.BackupImport;
backupStep: InstallScreenBackupStep;
currentBytes?: number;
totalBytes?: number;
hasError?: boolean;
@ -124,6 +126,7 @@ type UpdateBackupImportProgressActionType = ReadonlyDeep<{
type: typeof UPDATE_BACKUP_IMPORT_PROGRESS;
payload:
| {
backupStep: InstallScreenBackupStep;
currentBytes: number;
totalBytes: number;
}
@ -560,6 +563,7 @@ export function reducer(
return {
step: InstallScreenStep.BackupImport,
backupStep: InstallScreenBackupStep.Download,
};
}
@ -581,6 +585,7 @@ export function reducer(
return {
...state,
backupStep: action.payload.backupStep,
currentBytes: action.payload.currentBytes,
totalBytes: action.payload.totalBytes,
};

View file

@ -109,6 +109,7 @@ export const SmartInstallScreen = memo(function SmartInstallScreen() {
step: InstallScreenStep.BackupImport,
screenSpecificProps: {
i18n,
backupStep: installerState.backupStep,
currentBytes: installerState.currentBytes,
totalBytes: installerState.totalBytes,
hasError: installerState.hasError,