mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-10 09:12:15 +01:00
use tanstack query in ProjectMultiselectDropdown, ClientTableRow and ProjectDropdown; fix e2e
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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