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 81d9561656
commit 6555bca5f1
5 changed files with 18 additions and 16 deletions

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