diff --git a/libs/e2e-test-ids/src/e2e-test-ids.ts b/libs/e2e-test-ids/src/e2e-test-ids.ts index cef7c4410f..fd55e24944 100644 --- a/libs/e2e-test-ids/src/e2e-test-ids.ts +++ b/libs/e2e-test-ids/src/e2e-test-ids.ts @@ -23,6 +23,18 @@ export enum PredefinedBackupPasswordTestIds { SkipButton = "predefined-backup-password-skip-button", } +export enum PredefinedBackupProgressTestIds { + Title = "predefined-backup-progress-title", + Description = "predefined-backup-progress-description", + ProgressBar = "predefined-backup-progress-progressbar", +} + +export enum ProgressBarTestIds { + Description = "progressbar-description", + Progress = "progressbar-progress", + Details = "progressbar-details", +} + export enum ContactSupportModalTestIds { Title = "contact-support-modal-success-title", Description = "contact-support-modal-success-description", diff --git a/libs/generic-view/ui/src/lib/interactive/progress-bar/progress-bar.tsx b/libs/generic-view/ui/src/lib/interactive/progress-bar/progress-bar.tsx index 41f9af5466..0a40b87abf 100644 --- a/libs/generic-view/ui/src/lib/interactive/progress-bar/progress-bar.tsx +++ b/libs/generic-view/ui/src/lib/interactive/progress-bar/progress-bar.tsx @@ -7,6 +7,7 @@ import React, { useId } from "react" import { APIFC } from "generic-view/utils" import styled from "styled-components" import { ProgressBarConfig, ProgressBarData } from "generic-view/models" +import { ProgressBarTestIds } from "e2e-test-ids" export const ProgressBar: APIFC = ({ data, @@ -16,13 +17,21 @@ export const ProgressBar: APIFC = ({ const id = useId() return ( - {data?.message && {data?.message}} + {data?.message && ( + + {data?.message} + + )} -