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 OverrideFailedTestForm formatting and warning text. #1073

Merged
merged 1 commit into from
May 1, 2020

Conversation

Caleb-Ellis
Copy link
Contributor

@Caleb-Ellis Caleb-Ellis commented May 1, 2020

Done

  • Updated warning text to describe why machines could be in Failed testing with 0 failed tests.
  • Updated form spacing.

QA

  • Choose some failed testing machines that have 0 failed tests.
  • Check that the message displayed is different and the suppress tests checkbox does not show.

Fixes

Fixes canonical-web-and-design/MAAS-squad#1902

Screenshots

Multiple non-failed

Screenshot_2020-05-01 Machines bolla MAAS

Single non-failed

Screenshot_2020-05-01 Machines bolla MAAS(1)

Multiple failed

Screenshot_2020-05-01 Machines bolla MAAS(2)

Single failed

Screenshot_2020-05-01 Machines bolla MAAS(3)

@Caleb-Ellis Caleb-Ellis force-pushed the override-form-format branch 2 times, most recently from f3631ab to f4843ab Compare May 1, 2020 04:01
Copy link
Contributor

@huwshimi huwshimi left a comment

Choose a reason for hiding this comment

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

Thanks! One final comment below.

<a
href={`${process.env.REACT_APP_BASENAME}/#/machine/${singleMachine.system_id}`}
>
{` failed ${numFailedTests} ${pluralize("test", numFailedTests)}.`}
Copy link
Contributor

Choose a reason for hiding this comment

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

One further dedupe, you could store this as a string and append have below.

@Caleb-Ellis Caleb-Ellis force-pushed the override-form-format branch from d9c6e29 to 4a84c1a Compare May 1, 2020 04:27
@Caleb-Ellis Caleb-Ellis merged commit e53fb73 into canonical:master May 1, 2020
@Caleb-Ellis Caleb-Ellis deleted the override-form-format branch May 1, 2020 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants