fix billable toggle on time tracker, add billable toggle on time entries row

This commit is contained in:
Gregor Vostrak
2024-04-16 16:28:37 +02:00
parent a7d425be0f
commit fe61a54c35
8 changed files with 52 additions and 8 deletions

View File

@@ -4,7 +4,10 @@ import { PLAYWRIGHT_BASE_URL } from '../playwright/config';
test('test that user name can be updated', async ({ page }) => {
await page.goto(PLAYWRIGHT_BASE_URL + '/user/profile');
await page.getByLabel('Name').fill('NEW NAME');
await page.getByRole('button', { name: 'Save' }).first().click();
await Promise.all([
page.getByRole('button', { name: 'Save' }).first().click(),
page.waitForResponse('**/user/profile-information'),
]);
await page.reload();
await expect(page.getByLabel('Name')).toHaveValue('NEW NAME');
});

View File

@@ -276,3 +276,5 @@ test('test that adding a new tag when the timer is running', async ({
// test that sidebar timetracker starts and stops timer
// test that sidebar timetracker changes state when tmer on dashboard is started
// test billable toggle