-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in r2-3105-missing-label-form-export (pull request #7006)
R2-3105 - W - Missing 'Show hidden fields' label on form export modal Approved-by: Dennis Hernandez
- Loading branch information
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { screen, mountedFieldComponent } from "test-utils"; | ||
|
||
import RadioInput from "./radio-input"; | ||
|
||
describe("<Form /> - fields/<RadioInput />", () => { | ||
const props = { | ||
commonInputProps: { | ||
label: "Test Field 2", | ||
name: "test" | ||
}, | ||
options: [ | ||
{ id: 1, display_text: "option-1" }, | ||
{ id: 2, display_text: "option-2" } | ||
], | ||
formMethods: {} | ||
}; | ||
|
||
it("renders RadioInput inputs", () => { | ||
mountedFieldComponent(<RadioInput {...props} />); | ||
expect(screen.getByText("option-1")).toBeInTheDocument(); | ||
expect(screen.getByText("option-2")).toBeInTheDocument(); | ||
}); | ||
|
||
it("renders help text", () => { | ||
mountedFieldComponent(<RadioInput {...props} />); | ||
expect(screen.getByText("Test Field 2 help text")).toBeInTheDocument(); | ||
}); | ||
|
||
it("renders label", () => { | ||
mountedFieldComponent(<RadioInput {...props} />); | ||
expect(screen.getByText("Test Field 2")).toBeInTheDocument(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,3 +145,8 @@ | |
.downloadButton { | ||
padding-top: 10px; | ||
} | ||
|
||
.radioLabel { | ||
font-weight: bold; | ||
color: var(--c-solid-black); | ||
} |