From fbd0833d3db5bc3ce09c02a48697445e3d1622e2 Mon Sep 17 00:00:00 2001 From: Lucas Song Date: Wed, 29 May 2024 09:50:27 -0700 Subject: [PATCH 1/2] fix bug where grade 0 was showing instead of grade k --- src/components/reports/DistributionChartFacet.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/reports/DistributionChartFacet.vue b/src/components/reports/DistributionChartFacet.vue index 126bb5a43..32ad9ea6a 100644 --- a/src/components/reports/DistributionChartFacet.vue +++ b/src/components/reports/DistributionChartFacet.vue @@ -141,7 +141,7 @@ const distributionChartFacet = (taskId) => { labelPadding: 0, labelExpr: props.facetMode.name === 'Grade' - ? "join(['Grade ',if(datum.value == 'Kindergarten', 'K', datum.value ), ], '')" + ? "join(['Grade ',if(datum.value == '0', 'K', datum.value ), ], '')" : 'split(slice(datum.value, 2, datum.value.length), " ")', labelLimit: 150, labelSeparation: 0, // Set the spacing between lines in pixels From 601c9725f3a9296e96d7c67e4382baf07fb6dab5 Mon Sep 17 00:00:00 2001 From: Lucas Song Date: Wed, 29 May 2024 10:45:39 -0700 Subject: [PATCH 2/2] fix selectedScoreReport test --- .../default-tests/exportSelectedScoreReport.cy.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/partner-admin/default-tests/exportSelectedScoreReport.cy.js b/cypress/e2e/partner-admin/default-tests/exportSelectedScoreReport.cy.js index 4fde028a1..51a97aeb9 100644 --- a/cypress/e2e/partner-admin/default-tests/exportSelectedScoreReport.cy.js +++ b/cypress/e2e/partner-admin/default-tests/exportSelectedScoreReport.cy.js @@ -13,6 +13,8 @@ describe('The partner admin can select and export progress reports for a given a cy.get('.p-checkbox-box').first().click(); cy.get('button').contains('Export Selected').click(); - cy.readFile(`${Cypress.env('cypressDownloads')}/roar-scores-selected.csv`); + cy.readFile( + `${Cypress.env('cypressDownloads')}/roar-scores-partner-test-administration-cypress-test-district-selected.csv`, + ); }); });