diff --git a/e2e/time.spec.ts b/e2e/time.spec.ts index e4e1b314..2ecb3dc5 100644 --- a/e2e/time.spec.ts +++ b/e2e/time.spec.ts @@ -151,7 +151,7 @@ test('test that adding a new tag to an existing time entry works', async ({ const newTagName = Math.floor(Math.random() * 1000000).toString(); await newTimeEntry.getByTestId('time_entry_tag_dropdown').click(); - await newTimeEntry.getByTestId('tag_dropdown_search').fill(newTagName); + await page.getByTestId('tag_dropdown_search').fill(newTagName); const [tagReponse] = await Promise.all([ page.waitForResponse(async (response) => { @@ -162,7 +162,7 @@ test('test that adding a new tag to an existing time entry works', async ({ (await response.json()).data.name === newTagName ); }), - newTimeEntry.getByTestId('tag_dropdown_search').press('Enter'), + page.getByTestId('tag_dropdown_search').press('Enter'), ]); await page.waitForResponse(async (response) => { @@ -178,12 +178,8 @@ test('test that adding a new tag to an existing time entry works', async ({ ); }); - await expect(newTimeEntry.getByTestId('tag_dropdown_search')).toHaveValue( - '' - ); - await expect( - newTimeEntry.getByRole('option', { name: newTagName }) - ).toBeVisible(); + await expect(page.getByTestId('tag_dropdown_search')).toHaveValue(''); + await expect(page.getByRole('option', { name: newTagName })).toBeVisible(); }); // Test that Start / End Time Update Works @@ -201,11 +197,11 @@ test('test that updating a the start of an existing time entry in the overview w 'time_entry_range_selector' ); await timeEntryRangeElement.click(); - await newTimeEntry + await page .getByTestId('time_entry_range_start') .getByTestId('time_picker_hour') .fill('1'); - await newTimeEntry + await page .getByTestId('time_entry_range_start') .getByTestId('time_picker_minute') .fill('1'); @@ -221,7 +217,7 @@ test('test that updating a the start of an existing time entry in the overview w (await response.json()).data.end !== null ); }), - newTimeEntry + page .getByTestId('time_entry_range_end') .getByTestId('time_picker_minute') .press('Tab'), @@ -420,7 +416,7 @@ test('test that deleting a time entry from the overview works', async ({ const newTimeEntry = timeEntryRows.first(); const actionsDropdown = newTimeEntry.getByTestId('time_entry_actions'); await actionsDropdown.click(); - const deleteButton = newTimeEntry.getByTestId('time_entry_delete'); + const deleteButton = page.getByTestId('time_entry_delete'); await deleteButton.click(); await expect(timeEntryRows).toHaveCount(timeEntryCount - 1); }); diff --git a/resources/js/Components/Common/Client/ClientDropdown.vue b/resources/js/Components/Common/Client/ClientDropdown.vue index 4cf7e710..e79c9d6c 100644 --- a/resources/js/Components/Common/Client/ClientDropdown.vue +++ b/resources/js/Components/Common/Client/ClientDropdown.vue @@ -148,7 +148,7 @@ const highlightedItem = computed(() => { " class="bg-card-background-active">
+ class="flex space-x-3 items-center px-4 py-3 text-xs text-white font-medium border-t rounded-b-lg border-card-background-separator"> Add "{{ searchValue }}" as a new Client diff --git a/resources/js/Components/Common/Project/ProjectBadge.vue b/resources/js/Components/Common/Project/ProjectBadge.vue index 1908d8da..9842174f 100644 --- a/resources/js/Components/Common/Project/ProjectBadge.vue +++ b/resources/js/Components/Common/Project/ProjectBadge.vue @@ -32,9 +32,11 @@ const indicatorClasses = { :class=" twMerge(indicatorClasses[size], 'inline-block rounded-full') ">
- - {{ name }} - +
+ + {{ name }} + +
diff --git a/resources/js/Components/Common/Project/ProjectDropdown.vue b/resources/js/Components/Common/Project/ProjectDropdown.vue index f16518ad..e4ffc565 100644 --- a/resources/js/Components/Common/Project/ProjectDropdown.vue +++ b/resources/js/Components/Common/Project/ProjectDropdown.vue @@ -107,7 +107,7 @@ function updateValue(project: Project) {