From 24281d0edb35686fc74ff67946f87ee7307268c7 Mon Sep 17 00:00:00 2001 From: lupusA Date: Sun, 17 Mar 2024 14:19:04 +0100 Subject: [PATCH] Fix test --- src/tests/Preferences.test.jsx | 4 +- .../__snapshots__/Preferences.test.jsx.snap | 272 +++++++++--------- 2 files changed, 138 insertions(+), 138 deletions(-) diff --git a/src/tests/Preferences.test.jsx b/src/tests/Preferences.test.jsx index b73cbca..09ea26d 100644 --- a/src/tests/Preferences.test.jsx +++ b/src/tests/Preferences.test.jsx @@ -32,9 +32,9 @@ describe('Select the light theme', () => { test('Should select light theme', () => { userEvent.selectOptions( screen.getByTestId('themeSelector'), - screen.getByRole('option', { name: "ui.value.theme-light" })); + screen.getByRole('option', { name: "value.ui.theme-light" })); - expect(screen.getByRole('option', { name: "ui.value.theme-light" }).selected).toBe(true) + expect(screen.getByRole('option', { name: "value.ui.theme-light" }).selected).toBe(true) expect(wrapper).toMatchSnapshot(); }) }) diff --git a/src/tests/__snapshots__/Preferences.test.jsx.snap b/src/tests/__snapshots__/Preferences.test.jsx.snap index 192fd28..d3b4ef3 100644 --- a/src/tests/__snapshots__/Preferences.test.jsx.snap +++ b/src/tests/__snapshots__/Preferences.test.jsx.snap @@ -14,7 +14,7 @@ Object { for="themeSelector" id="themeLabel" > - ui.feedback.theme-description + feedback.ui.theme-description - ui.feedback.theme-help + feedback.ui.theme-help
@@ -58,22 +58,22 @@ Object { class="label-description" for="bytesBaseInput" > - ui.feedback.byte-representation-description + feedback.ui.byte-representation-description - ui.feedback.byte-representation-help + feedback.ui.byte-representation-help
@@ -101,17 +101,17 @@ Object { - ui.feedback.pagesize-description + feedback.ui.pagesize-description @@ -144,7 +144,7 @@ Object { hmtlfor="pageSizeInput" id="pageSizeHelp" > - ui.feedback.pagesize-help + feedback.ui.pagesize-help @@ -160,7 +160,7 @@ Object { for="themeSelector" id="themeLabel" > - ui.feedback.theme-description + feedback.ui.theme-description - ui.feedback.theme-help + feedback.ui.theme-help
@@ -204,22 +204,22 @@ Object { class="label-description" for="bytesBaseInput" > - ui.feedback.byte-representation-description + feedback.ui.byte-representation-description - ui.feedback.byte-representation-help + feedback.ui.byte-representation-help
@@ -247,17 +247,17 @@ Object { - ui.feedback.pagesize-description + feedback.ui.pagesize-description @@ -290,7 +290,7 @@ Object { hmtlfor="pageSizeInput" id="pageSizeHelp" > - ui.feedback.pagesize-help + feedback.ui.pagesize-help @@ -363,7 +363,7 @@ Object { for="themeSelector" id="themeLabel" > - ui.feedback.theme-description + feedback.ui.theme-description - ui.feedback.theme-help + feedback.ui.theme-help
@@ -407,22 +407,22 @@ Object { class="label-description" for="bytesBaseInput" > - ui.feedback.byte-representation-description + feedback.ui.byte-representation-description - ui.feedback.byte-representation-help + feedback.ui.byte-representation-help
@@ -450,17 +450,17 @@ Object { - ui.feedback.pagesize-description + feedback.ui.pagesize-description @@ -493,7 +493,7 @@ Object { hmtlfor="pageSizeInput" id="pageSizeHelp" > - ui.feedback.pagesize-help + feedback.ui.pagesize-help @@ -509,7 +509,7 @@ Object { for="themeSelector" id="themeLabel" > - ui.feedback.theme-description + feedback.ui.theme-description - ui.feedback.theme-help + feedback.ui.theme-help
@@ -553,22 +553,22 @@ Object { class="label-description" for="bytesBaseInput" > - ui.feedback.byte-representation-description + feedback.ui.byte-representation-description - ui.feedback.byte-representation-help + feedback.ui.byte-representation-help
@@ -596,17 +596,17 @@ Object { - ui.feedback.pagesize-description + feedback.ui.pagesize-description @@ -639,7 +639,7 @@ Object { hmtlfor="pageSizeInput" id="pageSizeHelp" > - ui.feedback.pagesize-help + feedback.ui.pagesize-help @@ -712,7 +712,7 @@ Object { for="themeSelector" id="themeLabel" > - ui.feedback.theme-description + feedback.ui.theme-description - ui.feedback.theme-help + feedback.ui.theme-help
@@ -756,22 +756,22 @@ Object { class="label-description" for="bytesBaseInput" > - ui.feedback.byte-representation-description + feedback.ui.byte-representation-description - ui.feedback.byte-representation-help + feedback.ui.byte-representation-help
@@ -799,17 +799,17 @@ Object { - ui.feedback.pagesize-description + feedback.ui.pagesize-description @@ -842,7 +842,7 @@ Object { hmtlfor="pageSizeInput" id="pageSizeHelp" > - ui.feedback.pagesize-help + feedback.ui.pagesize-help @@ -858,7 +858,7 @@ Object { for="themeSelector" id="themeLabel" > - ui.feedback.theme-description + feedback.ui.theme-description - ui.feedback.theme-help + feedback.ui.theme-help
@@ -902,22 +902,22 @@ Object { class="label-description" for="bytesBaseInput" > - ui.feedback.byte-representation-description + feedback.ui.byte-representation-description - ui.feedback.byte-representation-help + feedback.ui.byte-representation-help
@@ -945,17 +945,17 @@ Object { - ui.feedback.pagesize-description + feedback.ui.pagesize-description @@ -988,7 +988,7 @@ Object { hmtlfor="pageSizeInput" id="pageSizeHelp" > - ui.feedback.pagesize-help + feedback.ui.pagesize-help @@ -1061,7 +1061,7 @@ Object { for="themeSelector" id="themeLabel" > - ui.feedback.theme-description + feedback.ui.theme-description - ui.feedback.theme-help + feedback.ui.theme-help
@@ -1105,22 +1105,22 @@ Object { class="label-description" for="bytesBaseInput" > - ui.feedback.byte-representation-description + feedback.ui.byte-representation-description - ui.feedback.byte-representation-help + feedback.ui.byte-representation-help
@@ -1148,17 +1148,17 @@ Object { - ui.feedback.pagesize-description + feedback.ui.pagesize-description @@ -1191,7 +1191,7 @@ Object { hmtlfor="pageSizeInput" id="pageSizeHelp" > - ui.feedback.pagesize-help + feedback.ui.pagesize-help @@ -1207,7 +1207,7 @@ Object { for="themeSelector" id="themeLabel" > - ui.feedback.theme-description + feedback.ui.theme-description - ui.feedback.theme-help + feedback.ui.theme-help
@@ -1251,22 +1251,22 @@ Object { class="label-description" for="bytesBaseInput" > - ui.feedback.byte-representation-description + feedback.ui.byte-representation-description - ui.feedback.byte-representation-help + feedback.ui.byte-representation-help
@@ -1294,17 +1294,17 @@ Object { - ui.feedback.pagesize-description + feedback.ui.pagesize-description @@ -1337,7 +1337,7 @@ Object { hmtlfor="pageSizeInput" id="pageSizeHelp" > - ui.feedback.pagesize-help + feedback.ui.pagesize-help