fix unit tests and lint

This commit is contained in:
Asier Isayas
2025-12-04 11:52:31 -08:00
parent a912233b33
commit a1b026544d
4 changed files with 11 additions and 2 deletions
@@ -653,7 +653,7 @@ export class ThroughputInputAutoPilotV3Component extends React.Component<
} }
onChange={this.onThroughputChange} onChange={this.onThroughputChange}
min={this.props.minimum} min={this.props.minimum}
onGetErrorMessage={(_) => { onGetErrorMessage={() => {
return <span data-test="manual-throughput-input-error">{this.props.throughputError}</span>; return <span data-test="manual-throughput-input-error">{this.props.throughputError}</span>;
}} }}
data-test="manual-throughput-input" data-test="manual-throughput-input"
@@ -273,6 +273,7 @@ exports[`ThroughputInputAutoPilotV3Component autopilot input visible 1`] = `
/> />
</Stack> </Stack>
<StyledTextFieldBase <StyledTextFieldBase
data-test="autopilot-throughput-input"
disabled={true} disabled={true}
id="autopilotInput" id="autopilotInput"
key="auto pilot throughput input" key="auto pilot throughput input"
@@ -333,6 +334,7 @@ exports[`ThroughputInputAutoPilotV3Component autopilot input visible 1`] = `
5,000 5,000
</span> </span>
<span <span
data-test="soft-allowed-maximum-throughput"
style={ style={
{ {
"float": "right", "float": "right",
@@ -752,11 +754,13 @@ exports[`ThroughputInputAutoPilotV3Component spendAck checkbox visible 1`] = `
} }
> >
<StyledTextFieldBase <StyledTextFieldBase
data-test="manual-throughput-input"
disabled={false} disabled={false}
id="throughputInput" id="throughputInput"
key="provisioned throughput input" key="provisioned throughput input"
min={10000} min={10000}
onChange={[Function]} onChange={[Function]}
onGetErrorMessage={[Function]}
required={true} required={true}
step={100} step={100}
styles={ styles={
@@ -811,6 +815,7 @@ exports[`ThroughputInputAutoPilotV3Component spendAck checkbox visible 1`] = `
5,000 5,000
</span> </span>
<span <span
data-test="soft-allowed-maximum-throughput"
style={ style={
{ {
"float": "right", "float": "right",
@@ -1206,11 +1211,13 @@ exports[`ThroughputInputAutoPilotV3Component throughput input visible 1`] = `
} }
> >
<StyledTextFieldBase <StyledTextFieldBase
data-test="manual-throughput-input"
disabled={false} disabled={false}
id="throughputInput" id="throughputInput"
key="provisioned throughput input" key="provisioned throughput input"
min={10000} min={10000}
onChange={[Function]} onChange={[Function]}
onGetErrorMessage={[Function]}
required={true} required={true}
step={100} step={100}
styles={ styles={
@@ -1265,6 +1272,7 @@ exports[`ThroughputInputAutoPilotV3Component throughput input visible 1`] = `
5,000 5,000
</span> </span>
<span <span
data-test="soft-allowed-maximum-throughput"
style={ style={
{ {
"float": "right", "float": "right",
@@ -208,7 +208,6 @@ export class NotificationConsoleComponent extends React.Component<
<span className="date">{item.date}</span> <span className="date">{item.date}</span>
<span className="message" role="alert" aria-live="assertive"> <span className="message" role="alert" aria-live="assertive">
{item.message} {item.message}
{console.log(item.message)}
</span> </span>
</div> </div>
)); ));
@@ -78,6 +78,7 @@ exports[`NotificationConsoleComponent renders the console 1`] = `
/> />
<span <span
className="headerStatus" className="headerStatus"
data-test="notification-console/header-status"
> >
<span <span
aria-atomic="true" aria-atomic="true"
@@ -261,6 +262,7 @@ exports[`NotificationConsoleComponent renders the console 2`] = `
/> />
<span <span
className="headerStatus" className="headerStatus"
data-test="notification-console/header-status"
> >
<span <span
aria-atomic="true" aria-atomic="true"