Skip to content
Snippets Groups Projects

Resolve "Record language in submission"

Merged Arie Peterson requested to merge 40-record-language-in-submission into main
3 files
+ 11
4
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -41,7 +41,7 @@ describe('<ContactForm problemGroup="%s"}>', () => {
'renders the contact form with problemGroup: %s',
(problemGroup) => {
const { getByRole, queryByRole, getByText } = render(
<ContactForm formAction='' problem={problem} problemGroup={problemGroup} />,
<ContactForm formAction='' language='en' problem={problem} problemGroup={problemGroup} />,
);
const contactDetailFieldset = getByRole('group', {
name: /Contact details/i,
@@ -73,7 +73,7 @@ describe('<ContactForm problemGroup="%s"}>', () => {
])('confirmation modal closes on %s %s', (action, value) => {
const problemGroup = 'technical';
const { getByRole } = render(
<ContactForm formAction='' problem={problem} problemGroup={problemGroup} />,
<ContactForm formAction='' language='en' problem={problem} problemGroup={problemGroup} />,
);
const regularSubmit = getByRole('button', { name: /submit request/i });
@@ -97,7 +97,7 @@ describe('<ContactForm problemGroup="%s"}>', () => {
it('has an option to make the request urgent', () => {
const problemGroup = 'technical';
const { getByText, getByRole } = render(
<ContactForm formAction='' problem={problem} problemGroup={problemGroup} />,
<ContactForm formAction='' language='en' problem={problem} problemGroup={problemGroup} />,
);
const urgencyCheckbox = getByRole('checkbox', {
name: /urgent request/i,
Loading