From 50bf572cc4a210fc60a181a7b4b815f29f20254e Mon Sep 17 00:00:00 2001 From: C-Valen Date: Tue, 14 Jan 2025 12:30:22 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Update=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/__tests__/FlawForm.spec.ts | 5 ++-- .../__snapshots__/FlawForm.spec.ts.snap | 30 +++++++++++-------- .../__snapshots__/FlawCreateView.spec.ts.snap | 30 +++++++++++-------- 3 files changed, 37 insertions(+), 28 deletions(-) diff --git a/src/components/__tests__/FlawForm.spec.ts b/src/components/__tests__/FlawForm.spec.ts index d08cc2b2d..1307d298b 100644 --- a/src/components/__tests__/FlawForm.spec.ts +++ b/src/components/__tests__/FlawForm.spec.ts @@ -8,6 +8,7 @@ import FlawForm from '@/components/FlawForm/FlawForm.vue'; import CvssCalculator from '@/components/CvssCalculator/CvssCalculator.vue'; import FlawFormOwner from '@/components/FlawFormOwner/FlawFormOwner.vue'; import IssueFieldEmbargo from '@/components/IssueFieldEmbargo/IssueFieldEmbargo.vue'; +import CweSelector from '@/components/CweSelector/CweSelector.vue'; import { blankFlaw } from '@/composables/useFlaw'; @@ -106,7 +107,7 @@ describe('flawForm', () => { expect(nvdCvssField?.exists()).toBe(true); const cweIdField = subject - .findAllComponents(LabelEditable) + .findAllComponents(CweSelector) .find(component => component.props().label === 'CWE ID'); expect(cweIdField?.exists()).toBe(true); @@ -187,7 +188,7 @@ describe('flawForm', () => { expect(nvdCvssField?.exists()).toBe(true); const cweIdField = subject - .findAllComponents(LabelEditable) + .findAllComponents(CweSelector) .find(component => component.props().label === 'CWE ID'); expect(cweIdField?.exists()).toBe(true); diff --git a/src/components/__tests__/__snapshots__/FlawForm.spec.ts.snap b/src/components/__tests__/__snapshots__/FlawForm.spec.ts.snap index 49a771605..adfa11fbe 100644 --- a/src/components/__tests__/__snapshots__/FlawForm.spec.ts.snap +++ b/src/components/__tests__/__snapshots__/FlawForm.spec.ts.snap @@ -196,22 +196,26 @@ exports[`flawForm > mounts and renders 1`] = ` -