From 131294efcf779c6e3192ee680c30bc1581a388a7 Mon Sep 17 00:00:00 2001 From: Philipp Walter Date: Mon, 4 Sep 2023 11:23:35 +0200 Subject: [PATCH] test(widgets): hide price chart for e2e tests --- src/components/PriceChart.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/PriceChart.tsx b/src/components/PriceChart.tsx index 34105f6ed..09caca3ed 100644 --- a/src/components/PriceChart.tsx +++ b/src/components/PriceChart.tsx @@ -25,6 +25,7 @@ import { IThemeColors } from '../styles/themes'; import { SlashFeedJSON, TGraphPeriod } from '../store/types/widgets'; import useColors from '../hooks/colors'; import { webRelayClient, webRelayUrl } from './SlashtagsProvider'; +import { __E2E__ } from '../constants/env'; export type Change = { color: keyof IThemeColors; @@ -191,12 +192,14 @@ const PriceChart = ({ return ( - + {!__E2E__ && ( + + )} ); };