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 undesirable behavior impact collection details #939

Merged
merged 9 commits into from
Mar 6, 2024

Conversation

howard-e
Copy link
Contributor

This addresses feedback in #738 (comment).

This PR does the following:

  • On test run page, fixes an issue where the undesirable behavior checkboxes couldn't be tabbed between
  • On test run page, replaces Impact's 'High' option with 'Severe'
  • On test results table when used anywhere in the app, updates the assertion Other behaviors that create high negative-impacts are not exhibited to say Other behaviors that create severe negative-impacts are not exhibited instead
  • On the test results table when used anywhere in the app, updates the undesirable behaviors section to be labelled as Other behaviors that create negative impact: and presents the content in a table with Behavior, Details and Impact as the columns

Note that the aria-at sourced related changes are included in an open PR on that repository: w3c/aria-at#1016

Copy link
Collaborator

@Paul-Clue Paul-Clue left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@alflennik alflennik left a comment

Choose a reason for hiding this comment

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

Hey this looks great! Having been reviewing previous PRs related to assertions, these UI changes actually helped me put it all together and understand the experience we were driving towards. I'm liking how this has evolved this year.

While testing I found a situation that could lead to the "behavior cell" being blank. As I described to you offline, you have to submit the test result with an empty details field. I'll come back later and verify the fix for that.

highImpactPassedAssertionCount,
highImpactFailedAssertionCount,
severeImpactPassedAssertionCount,
severeImpactFailedAssertionCount,
moderateImpactPassedAssertionCount,
moderateImpactFailedAssertionCount,
commandsCount,
Copy link
Contributor

Choose a reason for hiding this comment

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

Since metrics are saved in the database does that mean we should have a migration to make sure the metrics are up-to-date?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this hasn't yet gone to the production environment yet to affect that database, no need to write that migration. There wouldn't be any metrics that include those properties just yet.

@@ -89,9 +89,9 @@ const TestPlanResultsTable = ({
{
id: `UnexpectedBehavior_MUST_${nextId()}`,
assertion: {
text: 'Other behaviors that create high negative-impacts are not exhibited'
text: 'Other behaviors that create severe negative-impacts are not exhibited'
Copy link
Contributor

Choose a reason for hiding this comment

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

The hyphen here isn't grammatically correct, it should be 'Other behaviors that create severe negative impacts are not exhibited'.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, although unsure if it was intentional. This could also be shortened in the future soon to:

Severe negative side effects do not occur

If you'd like to weigh in on that discussion.

responsive
aria-label={`Undesirable behaviors for test ${test.title}`}
className={`test-plan-undesirable-behaviors-table ${tableClassName}`}
>
Copy link
Contributor

Choose a reason for hiding this comment

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

For consistency, where possible can we call these unexpected behaviors?

@@ -262,8 +262,8 @@ const getMetrics = ({
testsCount,
testsFailedCount,
unexpectedBehaviorCount,
highImpactPassedAssertionCount,
highImpactFailedAssertionCount,
Copy link
Contributor

Choose a reason for hiding this comment

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

The name highImpactFailedAssertionCount is still present in server/util/getMetrics.js is there a plan to remove it from there?

Copy link
Contributor Author

@howard-e howard-e Feb 29, 2024

Choose a reason for hiding this comment

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

I think this comment may have been before the latest changes from main were merged in here, so this may be outdated? server/util/getMetrics.js isn't on this branch anymore.

Copy link
Contributor

Choose a reason for hiding this comment

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

You're right!

Copy link
Contributor

@alflennik alflennik left a comment

Choose a reason for hiding this comment

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

Looks great, I'm definitely happy to approve! About the grammatical issue I'll leave it up to your judgement.

@howard-e howard-e merged commit fa1da4e into main Mar 6, 2024
2 checks passed
@howard-e howard-e deleted the update-impact-collection-details branch March 6, 2024 17:06
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.

3 participants