Refactor: Improve performance on test (#5074)
improve performance on test angflowShortcuts.spec.ts
This commit is contained in:
parent
5924fa3c7f
commit
d66e5a972b
1 changed files with 6 additions and 2 deletions
|
|
@ -19,7 +19,9 @@ test(
|
||||||
|
|
||||||
while (modalCount === 0) {
|
while (modalCount === 0) {
|
||||||
await page.getByText("New Flow", { exact: true }).click();
|
await page.getByText("New Flow", { exact: true }).click();
|
||||||
await page.waitForTimeout(3000);
|
await page.waitForSelector('[data-testid="modal-title"]', {
|
||||||
|
timeout: 3000,
|
||||||
|
});
|
||||||
modalCount = await page.getByTestId("modal-title")?.count();
|
modalCount = await page.getByTestId("modal-title")?.count();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -34,7 +36,9 @@ test(
|
||||||
await page.getByTestId("sidebar-search-input").click();
|
await page.getByTestId("sidebar-search-input").click();
|
||||||
await page.getByTestId("sidebar-search-input").fill("ollama");
|
await page.getByTestId("sidebar-search-input").fill("ollama");
|
||||||
|
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForSelector('[data-testid="modelsOllama"]', {
|
||||||
|
timeout: 3000,
|
||||||
|
});
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.getByTestId("modelsOllama")
|
.getByTestId("modelsOllama")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue