From b1795392ad513f14549bfdcd2cb963da6ca24cd3 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Wed, 5 Jun 2024 15:41:56 +0200 Subject: [PATCH] add date selector to time entries, fixes ST-134 --- e2e/time.spec.ts | 4 +- resources/js/Components/Common/DatePicker.vue | 15 ++++++- resources/js/Components/Common/TimePicker.vue | 11 ++--- .../Components/Common/TimeRangeSelector.vue | 40 ++++++++++++------- .../TimeTracker/TimeTrackerRangeSelector.vue | 6 +-- resources/js/utils/time.ts | 8 ++++ 6 files changed, 56 insertions(+), 28 deletions(-) diff --git a/e2e/time.spec.ts b/e2e/time.spec.ts index 1de2fb11..5549f1c8 100644 --- a/e2e/time.spec.ts +++ b/e2e/time.spec.ts @@ -183,7 +183,7 @@ test('test that adding a new tag to an existing time entry works', async ({ }); // Test that Start / End Time Update Works -test('test that updating a the start of an existing time entry in the overview works on blur', async ({ +test('test that updating a the start of an existing time entry in the overview works on enter', async ({ page, }) => { await goToTimeOverview(page); @@ -220,7 +220,7 @@ test('test that updating a the start of an existing time entry in the overview w page .getByTestId('time_entry_range_end') .getByTestId('time_picker_minute') - .press('Tab'), + .press('Enter'), ]); }); diff --git a/resources/js/Components/Common/DatePicker.vue b/resources/js/Components/Common/DatePicker.vue index 05bf8f61..9d854215 100644 --- a/resources/js/Components/Common/DatePicker.vue +++ b/resources/js/Components/Common/DatePicker.vue @@ -1,7 +1,11 @@