Compare commits

..

2 Commits

Author SHA1 Message Date
vaidankarswapnil
b5718d4ab7 Updated 1 test snapshot 2022-02-07 12:35:51 +05:30
vaidankarswapnil
3eeebc9114 Fixed a11y scale tab manual option label issue 2022-02-07 12:30:38 +05:30
5 changed files with 13 additions and 1 deletions

View File

@@ -582,6 +582,7 @@ export class ThroughputInputAutoPilotV3Component extends React.Component<
onChange={this.onThroughputChange}
min={this.props.minimum}
errorMessage={this.props.throughputError}
ariaLabel="Estimate your required throughput with capacity calculator"
/>
{this.state.exceedFreeTierThroughput && (
<MessageBar

View File

@@ -262,6 +262,7 @@ exports[`ThroughputInputAutoPilotV3Component spendAck checkbox visible 1`] = `
</StyledLinkBase>
</Text>
<StyledTextFieldBase
ariaLabel="Estimate your required throughput with capacity calculator"
disabled={false}
id="throughputInput"
key="provisioned throughput input"
@@ -537,6 +538,7 @@ exports[`ThroughputInputAutoPilotV3Component throughput input visible 1`] = `
</StyledLinkBase>
</Text>
<StyledTextFieldBase
ariaLabel="Estimate your required throughput with capacity calculator"
disabled={false}
id="throughputInput"
key="provisioned throughput input"

View File

@@ -29,6 +29,7 @@ describe("Table query select Panel", () => {
it("Should checked availableCheckbox by default", () => {
const wrapper = mount(<TableQuerySelectPanel {...props} />);
expect(wrapper.find("#availableCheckbox").first().props()).toEqual({
ariaPositionInSet: 0,
id: "availableCheckbox",
label: "Available Columns",
checked: true,

View File

@@ -128,8 +128,9 @@ export const TableQuerySelectPanel: FunctionComponent<TableQuerySelectPanelProps
label="Available Columns"
checked={isAvailableColumnChecked}
onChange={availableColumnsCheckboxClick}
ariaPositionInSet={0}
/>
{columnOptions.map((column) => {
{columnOptions.map((column, index) => {
return (
<Checkbox
label={column.columnName}
@@ -137,6 +138,7 @@ export const TableQuerySelectPanel: FunctionComponent<TableQuerySelectPanelProps
key={column.columnName}
checked={column.selected}
disabled={!column.editable}
ariaPositionInSet={index + 1}
/>
);
})}

View File

@@ -37,12 +37,14 @@ exports[`Table query select Panel should render Default properly 1`] = `
className="column-select-view"
>
<StyledCheckboxBase
ariaPositionInSet={0}
checked={true}
id="availableCheckbox"
label="Available Columns"
onChange={[Function]}
>
<CheckboxBase
ariaPositionInSet={0}
checked={true}
id="availableCheckbox"
label="Available Columns"
@@ -328,6 +330,7 @@ exports[`Table query select Panel should render Default properly 1`] = `
<input
aria-checked="true"
aria-label="Available Columns"
aria-posinset={0}
checked={true}
className="input-55"
data-ktp-execute-target={true}
@@ -646,6 +649,7 @@ exports[`Table query select Panel should render Default properly 1`] = `
</CheckboxBase>
</StyledCheckboxBase>
<StyledCheckboxBase
ariaPositionInSet={1}
checked={true}
disabled={false}
key=""
@@ -653,6 +657,7 @@ exports[`Table query select Panel should render Default properly 1`] = `
onChange={[Function]}
>
<CheckboxBase
ariaPositionInSet={1}
checked={true}
disabled={false}
label=""
@@ -939,6 +944,7 @@ exports[`Table query select Panel should render Default properly 1`] = `
aria-checked="true"
aria-disabled={false}
aria-label=""
aria-posinset={1}
checked={true}
className="input-55"
data-ktp-execute-target={true}