Exported LoadingScreen testId and language Storage item key in order to be used in unit tests

This commit is contained in:
gianantoniopini
2021-01-22 06:36:11 +01:00
parent 0bab0d01d1
commit 16ed433705
4 changed files with 15 additions and 9 deletions
+4 -1
View File
@@ -3,8 +3,10 @@ import React, { memo } from 'react';
import { getRandomTip } from '../../data/tips';
import Logo from '../shared/Logo';
const dataTestId = 'loading-screen';
const LoadingScreen = () => (
<Modal open hideBackdrop>
<Modal data-testid={dataTestId} open hideBackdrop>
<Fade in>
<div className="w-screen h-screen flex justify-center items-center outline-none">
<div className="flex flex-col items-center">
@@ -17,3 +19,4 @@ const LoadingScreen = () => (
);
export default memo(LoadingScreen);
export { dataTestId };