Skip to content

Commit

Permalink
fix(smartx): add selectors for better testing
Browse files Browse the repository at this point in the history
  • Loading branch information
harshpatel-crest committed May 28, 2021
1 parent 9328e85 commit ed2c153
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/src/main/webapp/components/ConfigurationFormView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function ConfigurationFormView({ serviceName }) {
/>
<ButtonWrapper>
<Button
className="save_btn"
className="saveBtn"
appearance="primary"
label={isSubmitting ? <WaitSpinner /> : _('Save')}
onClick={handleSubmit}
Expand Down
1 change: 1 addition & 0 deletions ui/src/main/webapp/components/EntityModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class EntityModal extends Component {
disabled={this.state.isSubmititng}
/>
<Button
className="saveBtn"
appearance="primary"
label={this.state.isSubmititng ? <WaitSpinner /> : this.buttonText}
onClick={this.handleSubmit}
Expand Down
4 changes: 2 additions & 2 deletions ui/src/main/webapp/components/SingleInputComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ function SingleInputComponent(props) {
return (
<>
{createSearchChoice ? (
<StyledDiv>
<StyledDiv className="dropdownBox">
<ComboBox
className="dropdownBox"
value={props.value === null ? '' : props.value}
name={field}
error={error}
Expand Down Expand Up @@ -155,6 +154,7 @@ function SingleInputComponent(props) {
</SelectWrapper>
{isClearable !== true ? (
<Button
data-test="clear"
appearance="secondary"
icon={<Clear />}
onClick={() => restProps.handleChange(field, '')}
Expand Down
4 changes: 2 additions & 2 deletions ui/src/main/webapp/components/table/CustomTableRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function CustomTableRow(props) {
const rowActionsPrimaryButton = useCallback(
(selectedRow) => {
return (
<TableCellWrapper key={selectedRow.id}>
<TableCellWrapper data-column="actions" key={selectedRow.id}>
<ButtonGroup>
<Tooltip content={_('Edit')}>
<ActionButtonComponent
Expand Down Expand Up @@ -137,7 +137,7 @@ function CustomTableRow(props) {
: 'Disabled'
)}
/>
{statusContent}
<span data-test="status">{statusContent}</span>
</SwitchWrapper>
</Table.Cell>
);
Expand Down

0 comments on commit ed2c153

Please sign in to comment.