diff --git a/e2e/src/layout/viewerCtxMenu.prod.e2e-spec.js b/e2e/src/layout/viewerCtxMenu.prod.e2e-spec.js index 71aceb252..78ffbd941 100644 --- a/e2e/src/layout/viewerCtxMenu.prod.e2e-spec.js +++ b/e2e/src/layout/viewerCtxMenu.prod.e2e-spec.js @@ -10,6 +10,17 @@ const dict = { } ] } + }, + "Big Brain (Histology)": { + "Cytoarchitectonic Maps": { + tests:[ + { + position: [440,200], + expectedLabelName: 'Area hOc1 (V1, 17, CalcS)', + expectedLabelStatus: '(fully mapped)' + } + ] + } } } @@ -41,6 +52,26 @@ describe('> viewerCtxMenu', () => { expect(visible).toBeTrue() }) + it('> Title includes region status', async () => { + const { tests } = dict[templateName][parcellationName] + const { expectedLabelStatus, expectedLabelName } = tests[0] + await iavPage.wait(500) + if (expectedLabelStatus) { + const fullMenuText = await iavPage.getText(`[aria-label="${ARIA_LABELS.CONTEXT_MENU}"]`) + expect(fullMenuText.includes(`${expectedLabelName} ${expectedLabelStatus}`)).toEqual(true) + } + }) + + it('> Title do not includes region status', async () => { + const { tests } = dict[templateName][parcellationName] + const { expectedLabelStatus, expectedLabelName } = tests[0] + await iavPage.wait(500) + if (!expectedLabelStatus) { + const fullMenuText = await iavPage.getText(`[aria-label="${ARIA_LABELS.CONTEXT_MENU}"]`) + expect(fullMenuText.includes(expectedLabelName)).toEqual(true) + } + }) + it('> pos does not change when click inside', async () => { const { x: xBefore, y: yBefore, height: hBefore } = await iavPage.isAt(`[aria-label="${ARIA_LABELS.CONTEXT_MENU}"]`) await iavPage.click(`[aria-label="${ARIA_LABELS.SHOW_IN_OTHER_REF_SPACE}"]`) @@ -60,4 +91,4 @@ describe('> viewerCtxMenu', () => { }) } } -}) \ No newline at end of file +}) diff --git a/src/ui/parcellationRegion/regionMenu/regionMenu.template.html b/src/ui/parcellationRegion/regionMenu/regionMenu.template.html index d4f008803..b1f8288bd 100644 --- a/src/ui/parcellationRegion/regionMenu/regionMenu.template.html +++ b/src/ui/parcellationRegion/regionMenu/regionMenu.template.html @@ -2,6 +2,7 @@ {{ region.name }} + ({{region.status}}) @@ -10,12 +11,12 @@ Brain region - + - + - + @@ -29,7 +30,7 @@ Select - + Navigate - + Probability Map {{ previewDirective.active }} - - + + - + Change template - + @@ -110,7 +111,7 @@ Select - + @@ -154,7 +155,7 @@ - + @@ -196,7 +197,7 @@ - +