Skip to content

Commit a8a96e2

Browse files
author
Asier Isayas
committed
fix unit tests
1 parent a1b0265 commit a8a96e2

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/Explorer/Controls/Settings/SettingsSubComponents/__snapshots__/SubSettingsComponent.test.tsx.snap

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ exports[`SubSettingsComponent analyticalTimeToLive hidden 1`] = `
2222
options={
2323
[
2424
{
25+
"ariaLabel": "ttl-off-option",
2526
"key": "off",
2627
"text": "Off",
2728
},
2829
{
30+
"ariaLabel": "ttl-on-no-default-option",
2931
"key": "on-nodefault",
3032
"text": "On (no default)",
3133
},
3234
{
35+
"ariaLabel": "ttl-on-option",
3336
"key": "on",
3437
"text": "On",
3538
},
@@ -63,6 +66,7 @@ exports[`SubSettingsComponent analyticalTimeToLive hidden 1`] = `
6366
/>
6467
<StyledTextFieldBase
6568
ariaLabel="Time to live in seconds"
69+
data-test="ttl-input"
6670
id="timeToLiveSeconds"
6771
max={2147483647}
6872
min={1}
@@ -284,14 +288,17 @@ exports[`SubSettingsComponent analyticalTimeToLiveSeconds hidden 1`] = `
284288
options={
285289
[
286290
{
291+
"ariaLabel": "ttl-off-option",
287292
"key": "off",
288293
"text": "Off",
289294
},
290295
{
296+
"ariaLabel": "ttl-on-no-default-option",
291297
"key": "on-nodefault",
292298
"text": "On (no default)",
293299
},
294300
{
301+
"ariaLabel": "ttl-on-option",
295302
"key": "on",
296303
"text": "On",
297304
},
@@ -325,6 +332,7 @@ exports[`SubSettingsComponent analyticalTimeToLiveSeconds hidden 1`] = `
325332
/>
326333
<StyledTextFieldBase
327334
ariaLabel="Time to live in seconds"
335+
data-test="ttl-input"
328336
id="timeToLiveSeconds"
329337
max={2147483647}
330338
min={1}
@@ -601,14 +609,17 @@ exports[`SubSettingsComponent changeFeedPolicy hidden 1`] = `
601609
options={
602610
[
603611
{
612+
"ariaLabel": "ttl-off-option",
604613
"key": "off",
605614
"text": "Off",
606615
},
607616
{
617+
"ariaLabel": "ttl-on-no-default-option",
608618
"key": "on-nodefault",
609619
"text": "On (no default)",
610620
},
611621
{
622+
"ariaLabel": "ttl-on-option",
612623
"key": "on",
613624
"text": "On",
614625
},
@@ -642,6 +653,7 @@ exports[`SubSettingsComponent changeFeedPolicy hidden 1`] = `
642653
/>
643654
<StyledTextFieldBase
644655
ariaLabel="Time to live in seconds"
656+
data-test="ttl-input"
645657
id="timeToLiveSeconds"
646658
max={2147483647}
647659
min={1}
@@ -878,14 +890,17 @@ exports[`SubSettingsComponent renders 1`] = `
878890
options={
879891
[
880892
{
893+
"ariaLabel": "ttl-off-option",
881894
"key": "off",
882895
"text": "Off",
883896
},
884897
{
898+
"ariaLabel": "ttl-on-no-default-option",
885899
"key": "on-nodefault",
886900
"text": "On (no default)",
887901
},
888902
{
903+
"ariaLabel": "ttl-on-option",
889904
"key": "on",
890905
"text": "On",
891906
},
@@ -919,6 +934,7 @@ exports[`SubSettingsComponent renders 1`] = `
919934
/>
920935
<StyledTextFieldBase
921936
ariaLabel="Time to live in seconds"
937+
data-test="ttl-input"
922938
id="timeToLiveSeconds"
923939
max={2147483647}
924940
min={1}
@@ -1220,14 +1236,17 @@ exports[`SubSettingsComponent timeToLiveSeconds hidden 1`] = `
12201236
options={
12211237
[
12221238
{
1239+
"ariaLabel": "ttl-off-option",
12231240
"key": "off",
12241241
"text": "Off",
12251242
},
12261243
{
1244+
"ariaLabel": "ttl-on-no-default-option",
12271245
"key": "on-nodefault",
12281246
"text": "On (no default)",
12291247
},
12301248
{
1249+
"ariaLabel": "ttl-on-option",
12311250
"key": "on",
12321251
"text": "On",
12331252
},

test/sql/scaleAndSettings/settings.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ test.describe("Settings under Scale & Settings", () => {
5858
timeout: ONE_MINUTE_MS,
5959
});
6060

61-
// set it to Off
61+
// Set it to Off
6262
const ttlOffRadioButton = explorer.frame.getByRole("radio", { name: "ttl-off-option" });
6363
await ttlOffRadioButton.click();
6464

0 commit comments

Comments
 (0)