Skip to content

Commit 4825737

Browse files
committed
Resolved PR comments
1 parent 895baa9 commit 4825737

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/javascript/components/record-actions/add-incident/fields/component.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ describe("<Fields />", () => {
5959

6060
it("renders 1 FormSectionField", () => {
6161
mountedComponent(<Fields {...props} />, initialState, {}, {}, formProps);
62-
expect(screen.getByRole("textbox")).toBeInTheDocument();
62+
expect(screen.getByTestId("form-field")).toBeInTheDocument();
6363
});
6464

6565
it("renders component with valid props", () => {
6666
mountedComponent(<Fields {...props} />, initialState, {}, {}, formProps);
67-
expect(screen.getByRole("textbox")).toBeInTheDocument();
67+
expect(screen.getByTestId("form-field")).toBeInTheDocument();
6868
});
6969
});

app/javascript/components/record-form/form/form-section-field.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const FormSectionField = ({
158158

159159
return (
160160
<ConditionalWrapper condition={!mode.isShow && disabled} wrapper={Tooltip} title={i18n.t("messages.cannot_edit")}>
161-
<div className={classes}>
161+
<div className={classes} data-testid="form-field">
162162
<FieldComponent {...fieldProps} mode={mode} formSection={formSection} />
163163
{renderGuidingQuestions}
164164
</div>

0 commit comments

Comments
 (0)