mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-25 20:54:18 +00:00
fix unit tests and lint
This commit is contained in:
@@ -653,7 +653,7 @@ export class ThroughputInputAutoPilotV3Component extends React.Component<
|
||||
}
|
||||
onChange={this.onThroughputChange}
|
||||
min={this.props.minimum}
|
||||
onGetErrorMessage={(_) => {
|
||||
onGetErrorMessage={() => {
|
||||
return <span data-test="manual-throughput-input-error">{this.props.throughputError}</span>;
|
||||
}}
|
||||
data-test="manual-throughput-input"
|
||||
|
||||
@@ -273,6 +273,7 @@ exports[`ThroughputInputAutoPilotV3Component autopilot input visible 1`] = `
|
||||
/>
|
||||
</Stack>
|
||||
<StyledTextFieldBase
|
||||
data-test="autopilot-throughput-input"
|
||||
disabled={true}
|
||||
id="autopilotInput"
|
||||
key="auto pilot throughput input"
|
||||
@@ -333,6 +334,7 @@ exports[`ThroughputInputAutoPilotV3Component autopilot input visible 1`] = `
|
||||
5,000
|
||||
</span>
|
||||
<span
|
||||
data-test="soft-allowed-maximum-throughput"
|
||||
style={
|
||||
{
|
||||
"float": "right",
|
||||
@@ -752,11 +754,13 @@ exports[`ThroughputInputAutoPilotV3Component spendAck checkbox visible 1`] = `
|
||||
}
|
||||
>
|
||||
<StyledTextFieldBase
|
||||
data-test="manual-throughput-input"
|
||||
disabled={false}
|
||||
id="throughputInput"
|
||||
key="provisioned throughput input"
|
||||
min={10000}
|
||||
onChange={[Function]}
|
||||
onGetErrorMessage={[Function]}
|
||||
required={true}
|
||||
step={100}
|
||||
styles={
|
||||
@@ -811,6 +815,7 @@ exports[`ThroughputInputAutoPilotV3Component spendAck checkbox visible 1`] = `
|
||||
5,000
|
||||
</span>
|
||||
<span
|
||||
data-test="soft-allowed-maximum-throughput"
|
||||
style={
|
||||
{
|
||||
"float": "right",
|
||||
@@ -1206,11 +1211,13 @@ exports[`ThroughputInputAutoPilotV3Component throughput input visible 1`] = `
|
||||
}
|
||||
>
|
||||
<StyledTextFieldBase
|
||||
data-test="manual-throughput-input"
|
||||
disabled={false}
|
||||
id="throughputInput"
|
||||
key="provisioned throughput input"
|
||||
min={10000}
|
||||
onChange={[Function]}
|
||||
onGetErrorMessage={[Function]}
|
||||
required={true}
|
||||
step={100}
|
||||
styles={
|
||||
@@ -1265,6 +1272,7 @@ exports[`ThroughputInputAutoPilotV3Component throughput input visible 1`] = `
|
||||
5,000
|
||||
</span>
|
||||
<span
|
||||
data-test="soft-allowed-maximum-throughput"
|
||||
style={
|
||||
{
|
||||
"float": "right",
|
||||
|
||||
@@ -208,7 +208,6 @@ export class NotificationConsoleComponent extends React.Component<
|
||||
<span className="date">{item.date}</span>
|
||||
<span className="message" role="alert" aria-live="assertive">
|
||||
{item.message}
|
||||
{console.log(item.message)}
|
||||
</span>
|
||||
</div>
|
||||
));
|
||||
|
||||
@@ -78,6 +78,7 @@ exports[`NotificationConsoleComponent renders the console 1`] = `
|
||||
/>
|
||||
<span
|
||||
className="headerStatus"
|
||||
data-test="notification-console/header-status"
|
||||
>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
@@ -261,6 +262,7 @@ exports[`NotificationConsoleComponent renders the console 2`] = `
|
||||
/>
|
||||
<span
|
||||
className="headerStatus"
|
||||
data-test="notification-console/header-status"
|
||||
>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
|
||||
Reference in New Issue
Block a user