-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this 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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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'
.
There was a problem hiding this comment.
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}`} | ||
> |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right!
… after submitting results that previously excluded required input
There was a problem hiding this 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.
This addresses feedback in #738 (comment).
This PR does the following:
Other behaviors that create high negative-impacts are not exhibited
to sayOther behaviors that create severe negative-impacts are not exhibited
insteadOther behaviors that create negative impact:
and presents the content in a table with Behavior, Details and Impact as the columnsNote that the aria-at sourced related changes are included in an open PR on that repository: w3c/aria-at#1016