diff --git a/libs/core/overview/components/overview-screens/harmony-overview/harmony-overview.component.test.tsx b/libs/core/overview/components/overview-screens/harmony-overview/harmony-overview.component.test.tsx index 76726df5b3..4435c2449b 100644 --- a/libs/core/overview/components/overview-screens/harmony-overview/harmony-overview.component.test.tsx +++ b/libs/core/overview/components/overview-screens/harmony-overview/harmony-overview.component.test.tsx @@ -15,6 +15,7 @@ import React, { ComponentProps } from "react" import { Provider } from "react-redux" import { CheckForUpdateState } from "Core/update/constants/check-for-update-state.constant" import { CaseColour } from "core-device/models" +import { TimeSynchronizationTestIds } from "Core/overview/components/time-synchronization/time-synchronization-ids.enum" jest.mock("Core/settings/store/schemas/generate-application-id", () => ({ generateApplicationId: () => "123", @@ -79,4 +80,5 @@ test("Renders Mudita harmony data", () => { expect(queryByTestId(StatusTestIds.NetworkName)).not.toBeInTheDocument() queryByText(intl.formatMessage({ id: "module.overview.statusHarmonyTitle" })) expect(getByTestId(SystemTestIds.OsVersion)).toHaveTextContent("1.0.0") + expect(queryByTestId(TimeSynchronizationTestIds.SynchronizeButton)).toBeInTheDocument() }) diff --git a/libs/core/overview/components/time-synchronization/time-synchronization-ids.enum.ts b/libs/core/overview/components/time-synchronization/time-synchronization-ids.enum.ts new file mode 100644 index 0000000000..5507540eed --- /dev/null +++ b/libs/core/overview/components/time-synchronization/time-synchronization-ids.enum.ts @@ -0,0 +1,8 @@ +/** + * Copyright (c) Mudita sp. z o.o. All rights reserved. + * For licensing, see https://github.com/mudita/mudita-center/blob/master/LICENSE.md + */ + +export enum TimeSynchronizationTestIds { + SynchronizeButton = "time-synchronization-synchronize-button", +} diff --git a/libs/core/overview/components/time-synchronization/time-synchronization.component.tsx b/libs/core/overview/components/time-synchronization/time-synchronization.component.tsx index ea8a8eee74..845659fed7 100644 --- a/libs/core/overview/components/time-synchronization/time-synchronization.component.tsx +++ b/libs/core/overview/components/time-synchronization/time-synchronization.component.tsx @@ -27,7 +27,7 @@ import Icon from "Core/__deprecated__/renderer/components/core/icon/icon.compone import { IconType } from "Core/__deprecated__/renderer/components/core/icon/icon-type" import { Dispatch } from "Core/__deprecated__/renderer/store" import styled from "styled-components" -import { TimeSynchronizationTestIds } from "e2e-test-ids" +import { TimeSynchronizationTestIds } from "./time-synchronization-ids.enum" const messages = defineMessages({ timeSynchronizationTitle: { diff --git a/libs/e2e-test-ids/src/e2e-test-ids.ts b/libs/e2e-test-ids/src/e2e-test-ids.ts index 32a48038e9..cef7c4410f 100644 --- a/libs/e2e-test-ids/src/e2e-test-ids.ts +++ b/libs/e2e-test-ids/src/e2e-test-ids.ts @@ -54,7 +54,3 @@ export enum NewContactSupportModalTestIds { AttachedFilesLabel = "attached-files-label", AttachedFilesSubtext = "attached-files-subtext", } - -export enum TimeSynchronizationTestIds { - SynchronizeButton = "time-synchronization-synchronize-button", -}