use tanstack query in ProjectMultiselectDropdown, ClientTableRow and ProjectDropdown; fix e2e

This commit is contained in:
Gregor Vostrak
2026-01-14 18:21:29 +01:00
parent 6f68bbbd48
commit ebbc4e6837
5 changed files with 18 additions and 16 deletions

View File

@@ -125,8 +125,8 @@ test('test that project filtering works in reporting', async ({ page }) => {
// Go to reporting and filter by project1
await goToReporting(page);
await page.getByRole('button', { name: 'Project' }).nth(0).click();
await page.getByRole('dialog').getByText(project1).click();
await page.getByRole('button', { name: 'Projects' }).click();
await page.getByRole('option').filter({ hasText: project1 }).click();
await Promise.all([
// escape

View File

@@ -218,6 +218,11 @@ test('test that adding a new tag works', async ({ page }) => {
page.getByRole('button', { name: 'Create Tag' }).click(),
]);
// Wait for tags query refetch after invalidation
await page.waitForResponse(
(response) => response.url().includes('/tags') && response.status() === 200
);
await page.getByTestId('tag_dropdown').click();
await expect(page.getByRole('option', { name: newTagName })).toBeVisible();
});