mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
use tanstack query in ProjectMultiselectDropdown, ClientTableRow and ProjectDropdown; fix e2e
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user