refactor to common MoreOptionsDropdown component for shared ui

This commit is contained in:
Gregor Vostrak
2024-07-11 13:20:23 +02:00
parent cbdbcef9eb
commit 10d8540e6c
10 changed files with 204 additions and 324 deletions

View File

@@ -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);
});