Compare commits

...

3 Commits

Author SHA1 Message Date
vaidankarswapnil
60321e12d6 Updated 10 test snapshots again 2022-01-19 22:18:57 +05:30
vaidankarswapnil
41507f2f0f Updated 10 test snapshots 2022-01-19 21:56:46 +05:30
vaidankarswapnil
a8caf95344 Fixed a11y issue for the new container label 2022-01-19 21:50:34 +05:30
3 changed files with 29665 additions and 25 deletions

29666
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -212,7 +212,12 @@ export const ThroughputInput: FunctionComponent<ThroughputInputProps> = ({
</Text>
<Stack horizontal>
<Text variant="small" style={{ lineHeight: "20px", fontWeight: 600 }} aria-label="maxRUDescription">
<Text
id="maxRU"
variant="small"
style={{ lineHeight: "20px", fontWeight: 600 }}
aria-label="Max request units per second"
>
{isDatabase ? "Database" : getCollectionName()} Max RU/s
</Text>
<InfoTooltip>{getAutoScaleTooltip()}</InfoTooltip>
@@ -224,11 +229,11 @@ export const ThroughputInput: FunctionComponent<ThroughputInputProps> = ({
fieldGroup: { width: 300, height: 27 },
field: { fontSize: 12 },
}}
onChange={(event, newInput?: string) => onThroughputValueChange(newInput)}
onChange={(_, newInput?: string) => onThroughputValueChange(newInput)}
step={AutoPilotUtils.autoPilotIncrementStep}
min={AutoPilotUtils.minAutoPilotThroughput}
value={throughput.toString()}
aria-label="Max request units per second"
aria-labelledby="maxRU"
required={true}
errorMessage={throughputError}
/>
@@ -268,7 +273,7 @@ export const ThroughputInput: FunctionComponent<ThroughputInputProps> = ({
fieldGroup: { width: 300, height: 27 },
field: { fontSize: 12 },
}}
onChange={(event, newInput?: string) => onThroughputValueChange(newInput)}
onChange={(_, newInput?: string) => onThroughputValueChange(newInput)}
step={100}
min={SharedConstants.CollectionCreation.DefaultCollectionRUs400}
max={userContext.isTryCosmosDBSubscription ? Constants.TryCosmosExperience.maxRU : Infinity}

View File

@@ -1012,7 +1012,8 @@ exports[`ThroughputInput Pane should render Default properly 1`] = `
className="ms-Stack css-53"
>
<Text
aria-label="maxRUDescription"
aria-label="Max request units per second"
id="maxRU"
key=".0:$.0"
style={
Object {
@@ -1023,8 +1024,9 @@ exports[`ThroughputInput Pane should render Default properly 1`] = `
variant="small"
>
<span
aria-label="maxRUDescription"
aria-label="Max request units per second"
className="css-54"
id="maxRU"
style={
Object {
"fontWeight": 600,
@@ -1634,7 +1636,7 @@ exports[`ThroughputInput Pane should render Default properly 1`] = `
</div>
</Stack>
<StyledTextFieldBase
aria-label="Max request units per second"
aria-labelledby="maxRU"
errorMessage=""
key=".0:$.2"
min={4000}
@@ -1656,7 +1658,7 @@ exports[`ThroughputInput Pane should render Default properly 1`] = `
value="4000"
>
<TextFieldBase
aria-label="Max request units per second"
aria-labelledby="maxRU"
deferredValidationTime={200}
errorMessage=""
min={4000}
@@ -1953,6 +1955,7 @@ exports[`ThroughputInput Pane should render Default properly 1`] = `
>
<input
aria-invalid={false}
aria-labelledby="maxRU"
className="ms-TextField-field field-64"
id="TextField2"
min={4000}