refactor: improve timeouts for textAreaModalComponent (#4926)
refactor: Improve reliability and performance of keyPairListComponent.spec.ts test
This commit is contained in:
parent
da09c6a2a1
commit
5e2becdf32
1 changed files with 9 additions and 4 deletions
|
|
@ -5,7 +5,6 @@ test(
|
||||||
{ tag: ["@release", "@workspace"] },
|
{ tag: ["@release", "@workspace"] },
|
||||||
async ({ page }) => {
|
async ({ page }) => {
|
||||||
await page.goto("/");
|
await page.goto("/");
|
||||||
await page.waitForTimeout(1000);
|
|
||||||
|
|
||||||
let modalCount = 0;
|
let modalCount = 0;
|
||||||
try {
|
try {
|
||||||
|
|
@ -19,7 +18,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();
|
||||||
}
|
}
|
||||||
await page.waitForSelector('[data-testid="blank-flow"]', {
|
await page.waitForSelector('[data-testid="blank-flow"]', {
|
||||||
|
|
@ -30,7 +31,9 @@ test(
|
||||||
await page.getByTestId("sidebar-search-input").click();
|
await page.getByTestId("sidebar-search-input").click();
|
||||||
await page.getByTestId("sidebar-search-input").fill("prompt");
|
await page.getByTestId("sidebar-search-input").fill("prompt");
|
||||||
|
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForSelector('[data-testid="promptsPrompt"]', {
|
||||||
|
timeout: 30000,
|
||||||
|
});
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.locator('//*[@id="promptsPrompt"]')
|
.locator('//*[@id="promptsPrompt"]')
|
||||||
|
|
@ -66,7 +69,9 @@ test(
|
||||||
.getByTestId("button_open_text_area_modal_textarea_str_text")
|
.getByTestId("button_open_text_area_modal_textarea_str_text")
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
await page.waitForTimeout(500);
|
await page.waitForSelector('[data-testid="icon-FileText"]', {
|
||||||
|
timeout: 3000,
|
||||||
|
});
|
||||||
|
|
||||||
const value = await page.getByTestId("text-area-modal").inputValue();
|
const value = await page.getByTestId("text-area-modal").inputValue();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue