change color palette, change user_id to member_id

This commit is contained in:
Gregor Vostrak
2024-05-21 01:53:50 +02:00
parent 68ecc1227d
commit 8b12dec546
51 changed files with 836 additions and 388 deletions

View File

@@ -14,7 +14,7 @@ test('test that creating and deleting a new project via the modal works', async
'New Project ' + Math.floor(1 + Math.random() * 10000);
await goToProjectsOverview(page);
await page.getByRole('button', { name: 'Create Project' }).click();
await page.getByPlaceholder('Project Name').fill(newProjectName);
await page.getByLabel('Project Name').fill(newProjectName);
await Promise.all([
page.getByRole('button', { name: 'Create Project' }).nth(1).click(),
page.waitForResponse(

View File

@@ -14,7 +14,7 @@ test('test that creating and deleting a new tag in a new project works', async (
'New Project ' + Math.floor(1 + Math.random() * 10000);
await goToProjectsOverview(page);
await page.getByRole('button', { name: 'Create Project' }).click();
await page.getByPlaceholder('Project Name').fill(newProjectName);
await page.getByLabel('Project Name').fill(newProjectName);
await Promise.all([
page.getByRole('button', { name: 'Create Project' }).nth(1).click(),
page.waitForResponse(

View File

@@ -57,7 +57,7 @@ test('test that starting and stopping an empty time entry shows a new time entry
async function assertThatTimeEntryRowIsStopped(newTimeEntry: Locator) {
await expect(newTimeEntry.getByTestId('timer_button')).toHaveClass(
/bg-accent-300\/50/
/bg-accent-300\/70/
);
}
@@ -297,7 +297,7 @@ test('test that stopping a time entry from the overview works', async ({
]);
await expect(newTimeEntry.getByTestId('timer_button')).toHaveClass(
/bg-accent-300\/50/
/bg-accent-300\/70/
);
});
@@ -311,7 +311,7 @@ test('test that starting a time entry from the overview works', async ({
const newTimeEntry = timeEntryRows.first();
const startButton = newTimeEntry.getByTestId('timer_button');
await expect(startButton).toHaveClass(/bg-accent-300\/50/);
await expect(startButton).toHaveClass(/bg-accent-300\/70/);
await Promise.all([
page.waitForResponse(async (response) => {
@@ -341,7 +341,7 @@ test('test that starting a time entry from the overview works', async ({
);
}),
startOrStopTimerWithButton(page),
expect(startButton).toHaveClass(/bg-accent-300\/50/),
expect(startButton).toHaveClass(/bg-accent-300\/70/),
]);
});
@@ -401,7 +401,7 @@ test('test that updating a the duration in the overview for a running timer work
);
}),
startOrStopTimerWithButton(page),
expect(startButton).toHaveClass(/bg-accent-300\/50/),
expect(startButton).toHaveClass(/bg-accent-300\/70/),
]);
});

View File

@@ -40,7 +40,7 @@ export async function assertThatTimerIsStopped(page: Page) {
page.locator(
'[data-testid="dashboard_timer"] [data-testid="timer_button"]'
)
).toHaveClass(/bg-accent-300\/50/);
).toHaveClass(/bg-accent-300\/70/);
}
export async function stoppedTimeEntryResponse(