diff --git a/admin/src/components/input/TimePicker.spec.js b/admin/src/components/input/TimePicker.spec.js index 52e68325f..a00b744b2 100644 --- a/admin/src/components/input/TimePicker.spec.js +++ b/admin/src/components/input/TimePicker.spec.js @@ -19,8 +19,8 @@ describe('TimePicker', () => { expect(wrapper.vm.timeValue).toBe('23:45') // Check if update:modelValue event is emitted with updated value - expect(wrapper.emitted('input')).toBeTruthy() - expect(wrapper.emitted('input')[0]).toEqual(['23:45']) + expect(wrapper.emitted('update:modelValue')).toBeTruthy() + expect(wrapper.emitted('update:modelValue')[0]).toEqual(['23:45']) }) it('validates and corrects time format on blur', async () => { @@ -30,8 +30,8 @@ describe('TimePicker', () => { // Simulate user input await input.setValue('99:99') - expect(wrapper.emitted('input')).toBeTruthy() - expect(wrapper.emitted('input')[0]).toEqual(['99:99']) + expect(wrapper.emitted('update:modelValue')).toBeTruthy() + expect(wrapper.emitted('update:modelValue')[0]).toEqual(['99:99']) // Trigger blur event await input.trigger('blur') @@ -40,8 +40,8 @@ describe('TimePicker', () => { expect(wrapper.vm.timeValue).toBe('23:59') // Maximum allowed value for hours and minutes // Check if update:modelValue event is emitted with corrected value - expect(wrapper.emitted('input')).toBeTruthy() - expect(wrapper.emitted('input')[1]).toEqual(['23:59']) + expect(wrapper.emitted('update:modelValue')).toBeTruthy() + expect(wrapper.emitted('update:modelValue')[1]).toEqual(['23:59']) }) it('checks handling of empty input', async () => { @@ -58,7 +58,7 @@ describe('TimePicker', () => { expect(wrapper.vm.timeValue).toBe('00:00') // Check if update:modelValue event is emitted with default value - expect(wrapper.emitted('input')).toBeTruthy() - expect(wrapper.emitted('input')[1]).toEqual(['00:00']) + expect(wrapper.emitted('update:modelValue')).toBeTruthy() + expect(wrapper.emitted('update:modelValue')[1]).toEqual(['00:00']) }) }) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 72d1c1433..0ead04ccd 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -77,7 +77,7 @@ export default defineConfig({ COMMUNITY_URL: null, GRAPHQL_PATH: null, GRAPHQL_URI: CONFIG.GRAPHQL_URI, // null, - ADMIN_AUTH_PATH: CONFIG.ADMIN_AUTH_PATH, // null, + ADMIN_AUTH_PATH: CONFIG.ADMIN_AUTH_PATH ?? null, // it is the only env without exported default ADMIN_AUTH_URL: CONFIG.ADMIN_AUTH_URL, // null, COMMUNITY_NAME: null, COMMUNITY_REGISTER_PATH: null,