mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-28 14:14:08 +00:00
fix unit tests
This commit is contained in:
@@ -22,14 +22,17 @@ exports[`SubSettingsComponent analyticalTimeToLive hidden 1`] = `
|
|||||||
options={
|
options={
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-off-option",
|
||||||
"key": "off",
|
"key": "off",
|
||||||
"text": "Off",
|
"text": "Off",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-on-no-default-option",
|
||||||
"key": "on-nodefault",
|
"key": "on-nodefault",
|
||||||
"text": "On (no default)",
|
"text": "On (no default)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-on-option",
|
||||||
"key": "on",
|
"key": "on",
|
||||||
"text": "On",
|
"text": "On",
|
||||||
},
|
},
|
||||||
@@ -63,6 +66,7 @@ exports[`SubSettingsComponent analyticalTimeToLive hidden 1`] = `
|
|||||||
/>
|
/>
|
||||||
<StyledTextFieldBase
|
<StyledTextFieldBase
|
||||||
ariaLabel="Time to live in seconds"
|
ariaLabel="Time to live in seconds"
|
||||||
|
data-test="ttl-input"
|
||||||
id="timeToLiveSeconds"
|
id="timeToLiveSeconds"
|
||||||
max={2147483647}
|
max={2147483647}
|
||||||
min={1}
|
min={1}
|
||||||
@@ -284,14 +288,17 @@ exports[`SubSettingsComponent analyticalTimeToLiveSeconds hidden 1`] = `
|
|||||||
options={
|
options={
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-off-option",
|
||||||
"key": "off",
|
"key": "off",
|
||||||
"text": "Off",
|
"text": "Off",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-on-no-default-option",
|
||||||
"key": "on-nodefault",
|
"key": "on-nodefault",
|
||||||
"text": "On (no default)",
|
"text": "On (no default)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-on-option",
|
||||||
"key": "on",
|
"key": "on",
|
||||||
"text": "On",
|
"text": "On",
|
||||||
},
|
},
|
||||||
@@ -325,6 +332,7 @@ exports[`SubSettingsComponent analyticalTimeToLiveSeconds hidden 1`] = `
|
|||||||
/>
|
/>
|
||||||
<StyledTextFieldBase
|
<StyledTextFieldBase
|
||||||
ariaLabel="Time to live in seconds"
|
ariaLabel="Time to live in seconds"
|
||||||
|
data-test="ttl-input"
|
||||||
id="timeToLiveSeconds"
|
id="timeToLiveSeconds"
|
||||||
max={2147483647}
|
max={2147483647}
|
||||||
min={1}
|
min={1}
|
||||||
@@ -601,14 +609,17 @@ exports[`SubSettingsComponent changeFeedPolicy hidden 1`] = `
|
|||||||
options={
|
options={
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-off-option",
|
||||||
"key": "off",
|
"key": "off",
|
||||||
"text": "Off",
|
"text": "Off",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-on-no-default-option",
|
||||||
"key": "on-nodefault",
|
"key": "on-nodefault",
|
||||||
"text": "On (no default)",
|
"text": "On (no default)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-on-option",
|
||||||
"key": "on",
|
"key": "on",
|
||||||
"text": "On",
|
"text": "On",
|
||||||
},
|
},
|
||||||
@@ -642,6 +653,7 @@ exports[`SubSettingsComponent changeFeedPolicy hidden 1`] = `
|
|||||||
/>
|
/>
|
||||||
<StyledTextFieldBase
|
<StyledTextFieldBase
|
||||||
ariaLabel="Time to live in seconds"
|
ariaLabel="Time to live in seconds"
|
||||||
|
data-test="ttl-input"
|
||||||
id="timeToLiveSeconds"
|
id="timeToLiveSeconds"
|
||||||
max={2147483647}
|
max={2147483647}
|
||||||
min={1}
|
min={1}
|
||||||
@@ -878,14 +890,17 @@ exports[`SubSettingsComponent renders 1`] = `
|
|||||||
options={
|
options={
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-off-option",
|
||||||
"key": "off",
|
"key": "off",
|
||||||
"text": "Off",
|
"text": "Off",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-on-no-default-option",
|
||||||
"key": "on-nodefault",
|
"key": "on-nodefault",
|
||||||
"text": "On (no default)",
|
"text": "On (no default)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-on-option",
|
||||||
"key": "on",
|
"key": "on",
|
||||||
"text": "On",
|
"text": "On",
|
||||||
},
|
},
|
||||||
@@ -919,6 +934,7 @@ exports[`SubSettingsComponent renders 1`] = `
|
|||||||
/>
|
/>
|
||||||
<StyledTextFieldBase
|
<StyledTextFieldBase
|
||||||
ariaLabel="Time to live in seconds"
|
ariaLabel="Time to live in seconds"
|
||||||
|
data-test="ttl-input"
|
||||||
id="timeToLiveSeconds"
|
id="timeToLiveSeconds"
|
||||||
max={2147483647}
|
max={2147483647}
|
||||||
min={1}
|
min={1}
|
||||||
@@ -1220,14 +1236,17 @@ exports[`SubSettingsComponent timeToLiveSeconds hidden 1`] = `
|
|||||||
options={
|
options={
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-off-option",
|
||||||
"key": "off",
|
"key": "off",
|
||||||
"text": "Off",
|
"text": "Off",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-on-no-default-option",
|
||||||
"key": "on-nodefault",
|
"key": "on-nodefault",
|
||||||
"text": "On (no default)",
|
"text": "On (no default)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"ariaLabel": "ttl-on-option",
|
||||||
"key": "on",
|
"key": "on",
|
||||||
"text": "On",
|
"text": "On",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ test.describe("Settings under Scale & Settings", () => {
|
|||||||
timeout: ONE_MINUTE_MS,
|
timeout: ONE_MINUTE_MS,
|
||||||
});
|
});
|
||||||
|
|
||||||
// set it to Off
|
// Set it to Off
|
||||||
const ttlOffRadioButton = explorer.frame.getByRole("radio", { name: "ttl-off-option" });
|
const ttlOffRadioButton = explorer.frame.getByRole("radio", { name: "ttl-off-option" });
|
||||||
await ttlOffRadioButton.click();
|
await ttlOffRadioButton.click();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user