From dcea2fd16ea0cee980b031ec09e64428aa3acd00 Mon Sep 17 00:00:00 2001 From: Matteo Boschi Date: Tue, 15 Dec 2020 10:58:12 +0100 Subject: [PATCH] chore(Bonus Pagamenti Digitali): [#176148630] Add tests on SectionStatusComponent (#2586) * [#176148630] add tests * [#176148630] fix * [#176148630] add more tests Co-authored-by: Cristiano Tofani --- ts/components/SectionStatusComponent.tsx | 14 +- .../__tests__/SectionStatusComponent.test.tsx | 164 ++++++++++++++++++ ts/store/reducers/backendStatus.ts | 10 +- 3 files changed, 184 insertions(+), 4 deletions(-) create mode 100644 ts/components/__tests__/SectionStatusComponent.test.tsx diff --git a/ts/components/SectionStatusComponent.tsx b/ts/components/SectionStatusComponent.tsx index 7bad1f3c652..da12c54f79b 100644 --- a/ts/components/SectionStatusComponent.tsx +++ b/ts/components/SectionStatusComponent.tsx @@ -78,20 +78,30 @@ const SectionStatusComponent: React.FC = (props: Props) => { sectionStatus.web_url && sectionStatus.web_url[locale] ); return ( - maybeWebUrl.map(openWebUrl)}> + maybeWebUrl.map(openWebUrl)} + testID={"SectionStatusComponentTouchable"} + > -