Compare commits
2 Commits
commit-54c
...
commit-087
Author | SHA1 | Date | |
---|---|---|---|
087b42693f | |||
8f4c23bf40 |
@ -23,7 +23,7 @@ const VerifiedShieldIcon = createSvgIcon(
|
|||||||
|
|
||||||
const NoneVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
const NoneVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
||||||
return (
|
return (
|
||||||
<Tooltip title={`${vulnerabilityStringTitle} Vulnerability`} placement="top">
|
<Tooltip title={`${vulnerabilityStringTitle}`} placement="top">
|
||||||
<OutlinedBugIcon
|
<OutlinedBugIcon
|
||||||
sx={{
|
sx={{
|
||||||
color: '#43A047!important',
|
color: '#43A047!important',
|
||||||
@ -40,7 +40,7 @@ const NoneVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
|||||||
};
|
};
|
||||||
const UnknownVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
const UnknownVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
||||||
return (
|
return (
|
||||||
<Tooltip title={`${vulnerabilityStringTitle} Vulnerability`} placement="top">
|
<Tooltip title={`${vulnerabilityStringTitle}`} placement="top">
|
||||||
<OutlinedBugIcon
|
<OutlinedBugIcon
|
||||||
sx={{
|
sx={{
|
||||||
color: '#52637A',
|
color: '#52637A',
|
||||||
@ -75,7 +75,7 @@ const FailedScanIcon = () => {
|
|||||||
};
|
};
|
||||||
const LowVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
const LowVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
||||||
return (
|
return (
|
||||||
<Tooltip title={`${vulnerabilityStringTitle} Vulnerability`} placement="top">
|
<Tooltip title={`${vulnerabilityStringTitle}`} placement="top">
|
||||||
<OutlinedBugIcon
|
<OutlinedBugIcon
|
||||||
sx={{
|
sx={{
|
||||||
color: '#FB8C00',
|
color: '#FB8C00',
|
||||||
@ -92,7 +92,7 @@ const LowVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
|||||||
};
|
};
|
||||||
const MediumVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
const MediumVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
||||||
return (
|
return (
|
||||||
<Tooltip title={`${vulnerabilityStringTitle} Vulnerability`} placement="top">
|
<Tooltip title={`${vulnerabilityStringTitle}`} placement="top">
|
||||||
<FilledBugIcon
|
<FilledBugIcon
|
||||||
sx={{
|
sx={{
|
||||||
color: '#FB8C00',
|
color: '#FB8C00',
|
||||||
@ -109,7 +109,7 @@ const MediumVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
|||||||
};
|
};
|
||||||
const HighVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
const HighVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
||||||
return (
|
return (
|
||||||
<Tooltip title={`${vulnerabilityStringTitle} Vulnerability`} placement="top">
|
<Tooltip title={`${vulnerabilityStringTitle}`} placement="top">
|
||||||
<OutlinedBugIcon
|
<OutlinedBugIcon
|
||||||
sx={{
|
sx={{
|
||||||
color: '#E53935',
|
color: '#E53935',
|
||||||
@ -126,7 +126,7 @@ const HighVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
|||||||
};
|
};
|
||||||
const CriticalVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
const CriticalVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
||||||
return (
|
return (
|
||||||
<Tooltip title={`${vulnerabilityStringTitle} Vulnerability`} placement="top">
|
<Tooltip title={`${vulnerabilityStringTitle}`} placement="top">
|
||||||
<FilledBugIcon
|
<FilledBugIcon
|
||||||
sx={{
|
sx={{
|
||||||
color: '#E53935',
|
color: '#E53935',
|
||||||
|
@ -7,7 +7,7 @@ import { hosts, endpoints, sortCriteria } from './values/test-constants';
|
|||||||
test.describe('explore page test', () => {
|
test.describe('explore page test', () => {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
await page.addInitScript(() => {
|
await page.addInitScript(() => {
|
||||||
window.localStorage.setItem('token', '-');
|
window.localStorage.setItem('authConfig', '{}');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import { hosts, endpoints, sortCriteria } from './values/test-constants';
|
|||||||
test.describe('homepage test', () => {
|
test.describe('homepage test', () => {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
await page.addInitScript(() => {
|
await page.addInitScript(() => {
|
||||||
window.localStorage.setItem('token', '-');
|
window.localStorage.setItem('authConfig', '{}');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import { getRepoListOrderedAlpha } from './utils/test-data-parser';
|
|||||||
test.describe('navbar test', () => {
|
test.describe('navbar test', () => {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
await page.addInitScript(() => {
|
await page.addInitScript(() => {
|
||||||
window.localStorage.setItem('token', '-');
|
window.localStorage.setItem('authConfig', '{}');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ const testRepo = getMultiTagRepo();
|
|||||||
test.describe('Repository page test', () => {
|
test.describe('Repository page test', () => {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
await page.addInitScript(() => {
|
await page.addInitScript(() => {
|
||||||
window.localStorage.setItem('token', '-');
|
window.localStorage.setItem('authConfig', '{}');
|
||||||
});
|
});
|
||||||
|
|
||||||
await page.goto(`${hosts.ui}/image/${testRepo.repo}`);
|
await page.goto(`${hosts.ui}/image/${testRepo.repo}`);
|
||||||
|
@ -5,7 +5,7 @@ import { hosts, pageSizes } from './values/test-constants';
|
|||||||
test.describe('Tag page test', () => {
|
test.describe('Tag page test', () => {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
await page.addInitScript(() => {
|
await page.addInitScript(() => {
|
||||||
window.localStorage.setItem('token', '-');
|
window.localStorage.setItem('authConfig', '{}');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user