mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 11:42:15 +01:00
refactor to common MoreOptionsDropdown component for shared ui
This commit is contained in:
@@ -307,9 +307,11 @@ test('test that deleting a time entry from the overview works', async ({
|
||||
const timeEntryCount = await timeEntryRows.count();
|
||||
|
||||
const newTimeEntry = timeEntryRows.first();
|
||||
const actionsDropdown = newTimeEntry.getByTestId('time_entry_actions');
|
||||
const actionsDropdown = newTimeEntry
|
||||
.getByRole('button', { name: 'Actions for the time entry' })
|
||||
.first();
|
||||
await actionsDropdown.click();
|
||||
const deleteButton = page.getByTestId('time_entry_delete');
|
||||
const deleteButton = page.getByText('Delete');
|
||||
await deleteButton.click();
|
||||
await expect(timeEntryRows).toHaveCount(timeEntryCount - 1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user