Skip to content

Commit

Permalink
add the missing data testid, that was added in a later version
Browse files Browse the repository at this point in the history
  • Loading branch information
GnsP committed Nov 26, 2024
1 parent 261a4c8 commit d974724
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/cdap/components/HttpExecutor/InputPath/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function InputPathView({ value, onChange }) {
value={value}
onChange={onChange}
data-cy="request-path-input"
data-testid="request-path-input"
/>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions app/cdap/components/HttpExecutor/MethodSelector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function MethodSelectorView({ onChange, value }) {
data-cy="request-method-selector"
value={value}
onChange={onChange}
data-testid="request-method-selector"
>
{METHODS.map((method) => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ const RequestRowView: React.FC<IRequestRowProps> = ({
className={classnames(classes.requestPath, {
[classes.selectedRequestPath]: isSelectedRequest,
})}
data-testid="request-path"
>
{request.path}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ const mapDispatch = (dispatch) => {
function BodyView({ value, onChange }) {
return (
<div className="request-body">
<textarea data-cy="request-body" className="form-control" value={value} onChange={onChange} />
<textarea
data-cy="request-body"
className="form-control"
value={value}
onChange={onChange}
data-testid="request-body"
/>
</div>
);
}
Expand Down
7 changes: 6 additions & 1 deletion app/cdap/components/HttpExecutor/SendButton/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ const PREFIX = 'features.HttpExecutor';
export default function SendButton() {
return (
<div className="send-button-container text-right">
<button className="btn btn-primary" onClick={execute} data-cy="send-btn">
<button
className="btn btn-primary"
onClick={execute}
data-cy="send-btn"
data-testid="send-btn"
>
{T.translate(`${PREFIX}.send`)}
</button>
</div>
Expand Down

0 comments on commit d974724

Please sign in to comment.