From 5581d54c710f3a237b02b640cc87ebd34f688ed6 Mon Sep 17 00:00:00 2001 From: rmanaem Date: Thu, 2 Nov 2023 17:07:11 -0400 Subject: [PATCH] Fixed test --- .../app/validate-output-example-synthetic-e2etest.cy.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cypress/e2e/app/validate-output-example-synthetic-e2etest.cy.js b/cypress/e2e/app/validate-output-example-synthetic-e2etest.cy.js index ec4cd20c..a6eea532 100644 --- a/cypress/e2e/app/validate-output-example-synthetic-e2etest.cy.js +++ b/cypress/e2e/app/validate-output-example-synthetic-e2etest.cy.js @@ -81,24 +81,21 @@ describe("to annotate an assessment ", () => { cy.get('#vs4__combobox > .vs__selected-options > .vs__search').click(); cy.get('#vs4__option-0').click(); cy.get('[data-cy="annot-categorical-Sex"] > .card > .card-body > [data-cy="categoricalTable"] > tbody > :nth-child(3) > [aria-colindex="5"] > [data-cy="missingValueButton_2"]').click(); - cy.get('#__BVID__156___BV_tab_button__').click(); + cy.get("[data-cy='annotation-category-tabs'] ul").contains("li", "Diagnosis").click(); cy.get('#vs6__combobox > .vs__selected-options > .vs__search').click(); cy.get('thead > tr > [aria-colindex="6"]').click(); cy.get('[data-cy="isControlButton_0"]').click(); cy.get('#vs7__combobox > .vs__selected-options > .vs__search').click(); - cy.get('#__BVID__77__BV_tab_controls_').click(); cy.get('#vs7__combobox > .vs__selected-options > .vs__search').clear('a'); cy.get('#vs7__combobox > .vs__selected-options > .vs__search').type('attention'); - cy.get('#__BVID__77__BV_tab_controls_').click(); cy.get('#vs7__combobox').click(); cy.get('#vs7__combobox > .vs__selected-options > .vs__search').clear(); cy.get('#vs7__combobox > .vs__selected-options > .vs__search').type('Attention deficit hyperactivity disorder'); cy.get('#vs7__option-2').click(); - cy.get('#__BVID__156').click(); cy.get('[aria-colindex="5"] > [data-cy="missingValueButton_2"]').click(); - cy.get('#__BVID__195___BV_tab_button__').click(); + cy.get("[data-cy='annotation-category-tabs'] ul").contains("li", "Assessment Tool").click(); cy.get('[data-cy="tool-annotation-for-cogatlas:tsk_4a57abb949ece"] > tbody > :nth-child(4) > [aria-colindex="3"] > [data-cy="missingValueButton_3"]').click(); - cy.get('#__BVID__225___BV_tab_button__').click(); + cy.get('[data-cy="Assessment Tool"]').contains("Montreal Cognitive Assessment").click(); cy.get('[data-cy="tool-annotation-for-cogatlas:trm_57964b8a66aed"] > tbody > :nth-child(7) > [aria-colindex="3"] > [data-cy="missingValueButton_6"]').click(); cy.get('[data-cy="tool-annotation-for-cogatlas:trm_57964b8a66aed"] > tbody > :nth-child(4) > [aria-colindex="3"] > [data-cy="missingValueButton_3"]').click(); cy.get('[data-cy="button-nextpage"]').click();