unify display values for work and break time totals

This commit is contained in:
Gregor Vostrak
2026-07-27 15:48:05 +02:00
parent 79d85227c2
commit ce1bd6a435
4 changed files with 74 additions and 40 deletions

View File

@@ -2315,7 +2315,9 @@ test('test that break entries show a break badge and split day total on the time
await page.goto(PLAYWRIGHT_BASE_URL + '/time');
await expect(page.getByTestId('break_badge').first()).toBeVisible();
await expect(page.getByTestId('break_badge').first()).toContainText('Break');
// Day heading shows the break portion separately from worked time
// Day heading shows worked time first, then the break portion
await expect(page.getByTestId('day_break_duration').first()).toBeVisible();
await expect(page.getByTestId('day_break_duration').first()).toContainText('break');
await expect(page.getByTestId('day_break_duration').first().locator('..')).toContainText(
'2h 00min work · 0h 30min break'
);
});