From 343ed1bf878e6daf7ec857d2e0cd244679390162 Mon Sep 17 00:00:00 2001 From: Nelson Kopliku Date: Tue, 20 Jun 2023 12:00:16 +0200 Subject: [PATCH] Enforce expectation names uniqueness in CheckResultOutline test (#1549) --- .../ExecutionResults/CheckResultOutline.test.jsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/assets/js/components/ExecutionResults/CheckResultOutline.test.jsx b/assets/js/components/ExecutionResults/CheckResultOutline.test.jsx index 72e2b77914..e16874a7a9 100644 --- a/assets/js/components/ExecutionResults/CheckResultOutline.test.jsx +++ b/assets/js/components/ExecutionResults/CheckResultOutline.test.jsx @@ -43,11 +43,12 @@ describe('CheckResultOutline Component', () => { const checkID = faker.datatype.uuid(); const clusterName = faker.lorem.word(); - const expectationName1 = faker.company.name(); - const expectationName2 = faker.color.human(); - const expectationName3 = faker.color.human(); - const expectSameExpectationName1 = faker.lorem.word(); - const expectSameExpectationName2 = faker.lorem.word(); + // expectation names are not required to be uuids. using uuids for their uniqueness. + const expectationName1 = faker.datatype.uuid(); + const expectationName2 = faker.datatype.uuid(); + const expectationName3 = faker.datatype.uuid(); + const expectSameExpectationName1 = faker.datatype.uuid(); + const expectSameExpectationName2 = faker.datatype.uuid(); const expectations = [ catalogExpectExpectationFactory.build({