From 7ab368a424e5a6c03933ffa4bd40f02e0233c41f Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 7 Mar 2022 11:17:40 +0100 Subject: [PATCH] Fixed ShortUrlCreationSettings test --- test/settings/ShortUrlCreationSettings.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/settings/ShortUrlCreationSettings.test.tsx b/test/settings/ShortUrlCreationSettings.test.tsx index 2e3f884d..cbc57cd6 100644 --- a/test/settings/ShortUrlCreationSettings.test.tsx +++ b/test/settings/ShortUrlCreationSettings.test.tsx @@ -54,7 +54,7 @@ describe('', () => { const wrapper = createWrapper(shortUrlCreation); const validateUrlText = wrapper.find(FormText).first(); - expect(validateUrlText.text()).toContain(expectedText); + expect(validateUrlText.html()).toContain(expectedText); }); it.each([ @@ -65,7 +65,7 @@ describe('', () => { const wrapper = createWrapper({ validateUrls: true, ...shortUrlCreation }); const forwardQueryText = wrapper.find(FormText).at(1); - expect(forwardQueryText.text()).toContain(expectedText); + expect(forwardQueryText.html()).toContain(expectedText); }); it.each([ @@ -82,7 +82,7 @@ describe('', () => { const dropdown = wrapper.find(DropdownBtn); expect(dropdown.prop('text')).toEqual(expectedText); - expect(hintText.text()).toContain(expectedHint); + expect(hintText.html()).toContain(expectedHint); }); it.each([[ true ], [ false ]])('invokes setShortUrlCreationSettings when URL validation toggle value changes', (validateUrls) => {