From 7ef210890c412a813de9a78d50609f780eacbd27 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Thu, 2 Nov 2023 09:59:27 +0100 Subject: [PATCH] chore: enable more of legend test --- cypress/integration/options/legend.cy.js | 84 ++++++++++++------------ 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/cypress/integration/options/legend.cy.js b/cypress/integration/options/legend.cy.js index 892baf7cac..51b21666bc 100644 --- a/cypress/integration/options/legend.cy.js +++ b/cypress/integration/options/legend.cy.js @@ -13,7 +13,7 @@ import { // AXIS_ID_ROWS, } from '@dhis2/analytics' import { - // expectChartTitleToBeVisible, + expectChartTitleToBeVisible, // expectSeriesKeyToHaveSeriesKeyItems, // expectSVSubtitleToHaveColor, // expectSVTitleToHaveColor, @@ -31,41 +31,41 @@ import { // openContextMenu, openDimension, } from '../../elements/layout.js' -// import { -// clickMenuBarUpdateButton, -// openOptionsModal, -// } from '../../elements/menuBar.js' -// import { -// changeDisplayStrategyToFixed, -// changeDisplayStyleToText, -// changeFixedLegendSet, -// clickOptionsModalUpdateButton, -// toggleLegend, -// expectFixedLegendSetToBe, -// expectLegendDisplayStrategyToBeByDataItem, -// expectLegendDisplayStrategyToBeFixed, -// expectLegendDisplayStyleToBeFill, -// expectLegendDisplayStyleToBeText, -// expectLegendToBeEnabled, -// expectSingleValueToHaveTextColor, -// OPTIONS_TAB_LEGEND, -// toggleLegendKeyOption, -// expectLegendKeyOptionToBeEnabled, -// expectLegendKeyToBeVisible, -// expectLegendKeyToBeHidden, -// expectLegendKeyOptionToBeDisabled, -// expectOptionsTabToBeHidden, -// expectLegedKeyItemAmountToBe, -// OPTIONS_TAB_SERIES, -// setItemToType, -// clickOptionsModalHideButton, -// expectSingleValueToHaveBackgroundColor, -// expectSingleValueToNotHaveBackgroundColor, -// changeDisplayStyleToFill, -// changeColor, -// OPTIONS_TAB_STYLE, -// changeDisplayStrategyToByDataItem, -// } from '../../elements/optionsModal/index.js' +import { + // clickMenuBarUpdateButton, + openOptionsModal, +} from '../../elements/menuBar.js' +import { + // changeDisplayStrategyToFixed, + // changeDisplayStyleToText, + // changeFixedLegendSet, + clickOptionsModalUpdateButton, + toggleLegend, + // expectFixedLegendSetToBe, + expectLegendDisplayStrategyToBeByDataItem, + // expectLegendDisplayStrategyToBeFixed, + // expectLegendDisplayStyleToBeFill, + // expectLegendDisplayStyleToBeText, + expectLegendToBeEnabled, + // expectSingleValueToHaveTextColor, + OPTIONS_TAB_LEGEND, + // toggleLegendKeyOption, + // expectLegendKeyOptionToBeEnabled, + // expectLegendKeyToBeVisible, + // expectLegendKeyToBeHidden, + // expectLegendKeyOptionToBeDisabled, + // expectOptionsTabToBeHidden, + // expectLegedKeyItemAmountToBe, + // OPTIONS_TAB_SERIES, + // setItemToType, + // clickOptionsModalHideButton, + // expectSingleValueToHaveBackgroundColor, + // expectSingleValueToNotHaveBackgroundColor, + // changeDisplayStyleToFill, + // changeColor, + // OPTIONS_TAB_STYLE, + // changeDisplayStrategyToByDataItem, +} from '../../elements/optionsModal/index.js' import { goToStartPage } from '../../elements/startScreen.js' // import { changeVisType } from '../../elements/visualizationTypeSelector.js' // import { @@ -102,12 +102,12 @@ describe('Options - Legend', () => { expectVisualizationToBeVisible(VIS_TYPE_COLUMN) // enables legend - // openOptionsModal(OPTIONS_TAB_LEGEND) - // toggleLegend() - // expectLegendToBeEnabled() - // expectLegendDisplayStrategyToBeByDataItem() - // clickOptionsModalUpdateButton() - // expectChartTitleToBeVisible() + openOptionsModal(OPTIONS_TAB_LEGEND) + toggleLegend() + expectLegendToBeEnabled() + expectLegendDisplayStrategyToBeByDataItem() + clickOptionsModalUpdateButton() + expectChartTitleToBeVisible() // // verifies legend by data item is applied // TEST_ITEMS.forEach((item) =>