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