Skip to content

Commit

Permalink
fix(study): SJIP-1179 fix publication link (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
AltefrohneGaelle authored and lflangis committed Jan 20, 2025
1 parent d528369 commit 89188af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/Consultation/PageStudy.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ describe('Page d\'une étude - Valider les liens disponibles', () => {
cy.get('[class*="QueryBar_selected"] [class*="QueryValues_value"]').contains('HTP Whole Blood RNAseq (2020)').should('exist');
});

it('Lien Publication du panneau HTP Whole Blood RNAseq (2020) [SJIP-1179]', () => {
it('Lien Publication du panneau HTP Whole Blood RNAseq (2020)', () => {
cy.get('[class*="EntityDataset_panel"]').each(($el: JQuery<HTMLElement>) => {
if ($el.text().includes('HTP Whole Blood RNAseq (2020)')) {
cy.wrap($el).as('datasetPanel');
Expand Down
5 changes: 1 addition & 4 deletions src/views/StudyEntity/utils/datasets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ const getDatasetDescription = (dataset: IStudyDataset): IEntityDescriptionsItem[
nOfElementsWhenCollapsed={2}
dataSource={dataset.publications}
renderItem={(sourceText) => (
<ExternalLink
className={styles.externalLink}
href={`https://pubmed.ncbi.nlm.nih.gov/${sourceText.replace('PMID: ', '')}`}
>
<ExternalLink className={styles.externalLink} href={sourceText}>
{sourceText}
</ExternalLink>
)}
Expand Down

0 comments on commit 89188af

Please sign in to comment.