test(14.2.1-06): land remaining named tests and phase gate
WR-02 proofs and T-14.2.1-19..23 must fail the phase closed if hydration or child locale validation is removed. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { enableAutoUnmount, mount } from '@vue/test-utils'
|
||||
import { ref } from 'vue'
|
||||
import type { FormField } from '../../src/api/types'
|
||||
import MarkdownField from '../../src/components/form/fields/MarkdownField.vue'
|
||||
import MLMarkdownField from '../../src/components/form/fields/MLMarkdownField.vue'
|
||||
import { FORM_ENABLED_LOCALES } from '../../src/components/form/formContext'
|
||||
import { resetState } from '../helpers'
|
||||
|
||||
function field(type = 'markdown', name = 'body'): FormField {
|
||||
@@ -64,6 +66,11 @@ describe('MarkdownField composition and sinks', () => {
|
||||
controlId: 'f-body',
|
||||
},
|
||||
attachTo: document.body,
|
||||
global: {
|
||||
provide: {
|
||||
[FORM_ENABLED_LOCALES as symbol]: ref(['en', 'pl']),
|
||||
},
|
||||
},
|
||||
})
|
||||
expect(wrapper.findComponent(MarkdownField).exists()).toBe(true)
|
||||
await wrapper.find('[data-ml-locale]').setValue('pl')
|
||||
|
||||
Reference in New Issue
Block a user