Adjust host status colors

This commit is contained in:
Marliana Lara
2020-02-06 11:21:14 -05:00
parent 4be7cf66ec
commit 028a0a9279
2 changed files with 14 additions and 14 deletions

View File

@@ -30,24 +30,24 @@ const HostStatusBar = ({ i18n, counts = {} }) => {
const noData = Object.keys(counts).length === 0; const noData = Object.keys(counts).length === 0;
const hostStatus = { const hostStatus = {
ok: { ok: {
color: '#92D400', color: '#4CB140',
label: i18n._(t`OK`), label: i18n._(t`OK`),
}, },
dark: { skipped: {
color: '#470000', color: '#73BCF7',
label: i18n._(t`Unreachable`), label: i18n._(t`Skipped`),
},
failures: {
color: '#C9190B',
label: i18n._(t`Failed`),
}, },
changed: { changed: {
color: '#F0AB00', color: '#F0AB00',
label: i18n._(t`Changed`), label: i18n._(t`Changed`),
}, },
skipped: { failures: {
color: '#73BCF7', color: '#C9190B',
label: i18n._(t`Skipped`), label: i18n._(t`Failed`),
},
dark: {
color: '#8B8D8F',
label: i18n._(t`Unreachable`),
}, },
}; };

View File

@@ -29,10 +29,10 @@ describe('<HostStatusBar />', () => {
const tooltips = wrapper.find('TooltipContent'); const tooltips = wrapper.find('TooltipContent');
const expectedContent = [ const expectedContent = [
{ label: 'OK', count: 5 }, { label: 'OK', count: 5 },
{ label: 'Unreachable', count: 0 },
{ label: 'Failed', count: 0 },
{ label: 'Changed', count: 0 },
{ label: 'Skipped', count: 1 }, { label: 'Skipped', count: 1 },
{ label: 'Changed', count: 0 },
{ label: 'Failed', count: 0 },
{ label: 'Unreachable', count: 0 },
]; ];
tooltips.forEach((tooltip, index) => { tooltips.forEach((tooltip, index) => {