Export/import attachments in integration tests
This commit is contained in:
parent
d42df4b201
commit
9ff6c75eb9
21 changed files with 292 additions and 116 deletions
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue