From 527371efef5980fb60c1672302a52fc865e10b63 Mon Sep 17 00:00:00 2001
From: Tore Brede <Tore.Brede@uib.no>
Date: Mon, 13 Dec 2021 14:56:24 +0100
Subject: [PATCH] GREG-127: Fixing broken test

---
 frontend/src/routes/guest/register/index.test.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/frontend/src/routes/guest/register/index.test.tsx b/frontend/src/routes/guest/register/index.test.tsx
index b8a9c0df..0ac01aee 100644
--- a/frontend/src/routes/guest/register/index.test.tsx
+++ b/frontend/src/routes/guest/register/index.test.tsx
@@ -25,7 +25,6 @@ const testData = {
     start: '2021-08-10',
     end: '2021-08-16',
     contact_person_unit: 'Test contact person',
-    comments: 'Test comment',
   },
   meta: {
     session_type: 'invite',
@@ -66,5 +65,7 @@ test('Field showing values correctly', async () => {
   await screen.findByDisplayValue(
     `${testData.role.start} - ${testData.role.end}`
   )
-  await screen.findByDisplayValue(testData.role.comments)
+
+  // For the default setup the contact person at unit field should be showing
+  await screen.findByDisplayValue(testData.role.contact_person_unit)
 })
-- 
GitLab