feat(frontend): Add formSnapshotComparison test, add test setup
This commit is contained in:
@@ -183,8 +183,8 @@
|
||||
<script setup lang="ts">
|
||||
import type { AccordionItem } from '@nuxt/ui'
|
||||
import type { ApplicationFormDto, ApplicationFormVersionDto } from '~~/.api-client'
|
||||
import type { FormValueDiff, ValueChange, SectionChanges, TableRowDiff } from '~~/types/formDiff'
|
||||
import { compareApplicationFormValues, groupChangesBySection } from '~/utils/formDiff'
|
||||
import type { FormValueDiff, ValueChange, SectionChanges, TableRowDiff } from '~~/types/formSnapshotComparison'
|
||||
import { compareApplicationFormValues, groupChangesBySection } from '~/utils/formSnapshotComparison'
|
||||
|
||||
const props = defineProps<{
|
||||
open: boolean
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
FormOptionDto,
|
||||
FormElementType
|
||||
} from '~~/.api-client'
|
||||
import type { FormValueDiff, ValueChange, SectionChanges, TableDiff, TableRowDiff } from '~~/types/formDiff'
|
||||
import type { FormValueDiff, ValueChange, SectionChanges, TableDiff, TableRowDiff } from '~~/types/formSnapshotComparison'
|
||||
|
||||
// Element types that use true/false selection model
|
||||
const SELECTION_TYPES: FormElementType[] = ['SELECT', 'RADIOBUTTON', 'CHECKBOX', 'SWITCH']
|
||||
Reference in New Issue
Block a user