Skip to content

Commit c22287b

Browse files
committed
refactor: Remove redundant test case
1 parent 081e8d6 commit c22287b

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

tests/unit/behaviour.spec.ts

+1-21
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { FlowStep } from '@/constants';
3333
import type { IMarker, TimeModel, TimeType } from '@/interfaces';
3434
import { type VueWrapper } from '@vue/test-utils';
3535
import { localToTz } from '@/utils/timezone';
36+
import { nextTick } from 'vue';
3637

3738
describe('It should validate various picker scenarios', () => {
3839
it('Should dynamically disable times', async () => {
@@ -110,27 +111,6 @@ describe('It should validate various picker scenarios', () => {
110111
dp.unmount();
111112
});
112113

113-
it('Should not enable partial range with text-input on time-picker (#505)', async () => {
114-
const dp = await openMenu({ textInput: true, timePicker: true, range: true });
115-
const today = new Date();
116-
const hours = getHours(today);
117-
const minutes = getMinutes(today);
118-
119-
const singleTime = `${padZero(hours)}:${padZero(minutes)}`;
120-
121-
const input = dp.find('input');
122-
await input.setValue(singleTime);
123-
124-
expect(input.element.value).toBe(singleTime);
125-
126-
await input.trigger('keydown', { key: 'Enter' });
127-
128-
expect(dp.emitted()).toHaveProperty('invalid-select', [
129-
[[set(new Date(), { hours, minutes, seconds: 0, milliseconds: 0 })]],
130-
]);
131-
dp.unmount();
132-
});
133-
134114
it('Should emit regular and zoned date value', async () => {
135115
const timezone = 'UTC';
136116
const dp = await openMenu({ timezone: { emitTimezone: timezone } });

0 commit comments

Comments
 (0)