Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zhx828 committed Nov 7, 2024
1 parent f551ae7 commit 75de7cc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
24 changes: 12 additions & 12 deletions screenshot-test/App.screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,18 @@ describe('Tests without login', () => {
});
});

it('Therapeutic Level of Evidence V2 Page', async () => {
await page.goto(`${CLIENT_URL}therapeutic-levels`);
await page.setViewport(VIEW_PORT_1080);
await page.waitFor(WAITING_TIME);
let image = await page.screenshot(
getScreenshotConfig('LoE Page without Login')
);
expect(image).toMatchImageSnapshot({
customSnapshotIdentifier: 'LoE Page without Login',
});
});

it('Home Page', async () => {
await page.goto(`${CLIENT_URL}`);
await page.setViewport(VIEW_PORT_1080);
Expand Down Expand Up @@ -652,18 +664,6 @@ describe('Tests without login', () => {
});
});

it('Therapeutic Level of Evidence V2 Page', async () => {
await page.goto(`${CLIENT_URL}therapeutic-levels`);
await page.setViewport(VIEW_PORT_1080);
await page.waitFor(WAITING_TIME);
let image = await page.screenshot(
getScreenshotConfig('LoE Page without Login')
);
expect(image).toMatchImageSnapshot({
customSnapshotIdentifier: 'LoE Page without Login',
});
});

it('Diagnostic Level of Evidence', async () => {
await page.goto(`${CLIENT_URL}diagnostic-levels`);
await page.setViewport(VIEW_PORT_1080);
Expand Down
6 changes: 4 additions & 2 deletions src/main/webapp/app/pages/genePage/GeneInfoTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export interface IGeneInfoTil {

const GeneInfoTile = (props: IGeneInfoTil) => {
let count = 1;
if (props.isGermline) count++;
const hasGeneticRiskInfo =
props.geneNumber.penetrance || props.geneNumber.inheritanceMechanism;
if (hasGeneticRiskInfo) count++;
if (
props.geneNumber.highestSensitiveLevel ||
props.geneNumber.highestResistanceLevel ||
Expand All @@ -33,7 +35,7 @@ const GeneInfoTile = (props: IGeneInfoTil) => {

return (
<div className={styles.infoTileContainer}>
{props.isGermline && (
{hasGeneticRiskInfo && (
<InfoTile
className={classnames(styles.infoTile, tileStyle)}
title={'Genetic Risk'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ export default class SomaticGermlineGenePage extends React.Component<
get hasContent() {
return (
this.hasClinicalImplications ||
this.store.genomicIndicators.result.length > 0 ||
this.store.filteredBiologicalAlterations.length > 0
);
}
Expand Down

0 comments on commit 75de7cc

Please sign in to comment.