From a88e04f9c08f414809f4a12952a379dad3831013 Mon Sep 17 00:00:00 2001 From: akhuoa Date: Wed, 15 Oct 2025 14:06:53 +1300 Subject: [PATCH] Disable manual click event and trigger from search function --- cypress/component/MultiFlatmapVuer.cy.js | 37 +++++++++++++----------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/cypress/component/MultiFlatmapVuer.cy.js b/cypress/component/MultiFlatmapVuer.cy.js index 12482c77..76edb2e1 100644 --- a/cypress/component/MultiFlatmapVuer.cy.js +++ b/cypress/component/MultiFlatmapVuer.cy.js @@ -73,23 +73,26 @@ describe('MultiFlatmapVuer', () => { }) // Check the metadata for path exploration is loading correctly }).then(() => { - let fmEventCallback = flatmapVuer.eventCallback() - fmEventCallback( - "click", - { - id: "ilxtr:neuron-type-keast-5", - featureId: 26, - kind: "sensory", - label: "neuron type kblad 5", - models: "ilxtr:neuron-type-keast-5", - source: "ilxtr:neuron-type-keast-5", - taxons: '["NCBITaxon:10116"]', - completeness: true, - type: "feature", - mapUUID: flatmapUUID, - }, - [] - ); + // Disable manual testing of click event + // let fmEventCallback = flatmapVuer.eventCallback() + // fmEventCallback( + // "click", + // { + // id: "ilxtr:neuron-type-keast-5", + // featureId: 26, + // kind: "sensory", + // label: "neuron type kblad 5", + // models: "ilxtr:neuron-type-keast-5", + // source: "ilxtr:neuron-type-keast-5", + // taxons: '["NCBITaxon:10116"]', + // completeness: true, + // type: "feature", + // mapUUID: flatmapUUID, + // }, + // [] + // ); + // Trigger click event from search function + flatmapVuer.searchAndShowResult('ilxtr:neuron-type-keast-5', true, true) cy.get('.flatmapvuer-popover').should('exist').contains('Neuron type kblad 5').then(() => {