From 52300941d82f5b7e65d611a3641bf2515044bb1f Mon Sep 17 00:00:00 2001 From: SeriousHorncat Date: Mon, 16 Dec 2024 14:15:16 -0600 Subject: [PATCH] Resolved unit test text formatting issue; updated system test package.json to indicate its of type module for JavaScript. --- frontend/test/components/AnalysisListing/AnalysisCard.spec.js | 3 ++- system-tests/package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/test/components/AnalysisListing/AnalysisCard.spec.js b/frontend/test/components/AnalysisListing/AnalysisCard.spec.js index 5f4580ba..5a027a0f 100644 --- a/frontend/test/components/AnalysisListing/AnalysisCard.spec.js +++ b/frontend/test/components/AnalysisListing/AnalysisCard.spec.js @@ -81,7 +81,8 @@ describe('AnalysisCard.vue', () => { }); it('should show the coordinates information for a case', () => { const wrapper = getMountedComponent(); - expect(wrapper.html()).to.contains('c.745C>T'); + const variantListItem = wrapper.find('.variant-genomic-unit-text'); + expect(variantListItem.text()).to.contains('c.745C>T'); }); }); diff --git a/system-tests/package.json b/system-tests/package.json index 5dac2058..198c1ff5 100644 --- a/system-tests/package.json +++ b/system-tests/package.json @@ -1,6 +1,7 @@ { "name": "rosalution-system-tests", "version": "1.0.0", + "type": "module", "main": "index.js", "author": "CGDS", "license": "UNLICENSED",