Skip to content

Commit

Permalink
Reverted non-working test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurczewski committed Oct 14, 2024
1 parent 7c9c966 commit fc8fb12
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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()
})
Original file line number Diff line number Diff line change
@@ -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",
}
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 0 additions & 4 deletions libs/e2e-test-ids/src/e2e-test-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,3 @@ export enum NewContactSupportModalTestIds {
AttachedFilesLabel = "attached-files-label",
AttachedFilesSubtext = "attached-files-subtext",
}

export enum TimeSynchronizationTestIds {
SynchronizeButton = "time-synchronization-synchronize-button",
}

0 comments on commit fc8fb12

Please sign in to comment.