Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update error for mutually exclusive #308

Merged
merged 5 commits into from
Sep 28, 2020
Merged

Conversation

iwootten
Copy link
Contributor

What is the context of this PR?

All mutually exclusive mandatory questions need to change to when only checkboxes are used for each answer type:

  • "Select at least one answer"
  • "Select at least one answer to {question} (Using screenreaders)"

They should remain as:

  • "Enter an answer to continue" when answers of differing types are used.

How to review

Use the test_mutually_exclusive schema to confirm that errors displayed as expected. (New mandatory with differing answer type added)

@iwootten iwootten force-pushed the update-mutually-exclusive-error branch from e338df8 to 4bdedac Compare September 25, 2020 12:26
@iwootten
Copy link
Contributor Author

"Enter an answer to continue",
format_message_with_title(
error_messages["MANDATORY_CHECKBOX"], question_schema.get("title")
),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test should test the standard error message rather than the checkbox one.

Copy link
Contributor

@MebinAbraham MebinAbraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a minor comment.

app/forms/questionnaire_form.py Outdated Show resolved Hide resolved
@iwootten iwootten merged commit 2d757ba into master Sep 28, 2020
@iwootten iwootten deleted the update-mutually-exclusive-error branch September 28, 2020 10:02
@pricem14pc pricem14pc added this to the v3.50.0 milestone Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants