diff --git a/cypress/integration/validationReport.spec.js b/cypress/integration/validationReport.spec.js index 5d13cd49..8d1d8a8c 100644 --- a/cypress/integration/validationReport.spec.js +++ b/cypress/integration/validationReport.spec.js @@ -153,4 +153,16 @@ describe("The Validation Report page", () => { ); cy.get("[data-cy='document-url-anchor']").should("have.text", "ares-activities"); }); + + it("does not link activity identifiers to d-portal for ad hoc validation results", () => { + cy.fixture("validationReport01ares"); + cy.intercept("**/existing?testfile=ares-activities", { + fixture: "validationReport01ares.json", + }).as("validation"); + cy.visit("/report/ares-activities?isTestFile=true"); + cy.wait("@validation"); + cy.get("[data-cy='feedback-group']").should("exist"); + cy.contains("BE-BCE_KBO-0546740696-PG2017-2021_CD").should("be.visible"); + cy.get("[title='Open this activity in d-portal']").should("not.exist"); + }); }); diff --git a/src/components/report/FeedbackGroup.vue b/src/components/report/FeedbackGroup.vue index f7e3f56e..b93f93fe 100644 --- a/src/components/report/FeedbackGroup.vue +++ b/src/components/report/FeedbackGroup.vue @@ -62,12 +62,14 @@
{{ cleanIdentifier(props.activity.identifier) }} + {{ cleanIdentifier(props.activity.identifier) }}