From d4c04c89fed119a5918897f1b10b8216bdad0c7f Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Fri, 14 Feb 2025 17:07:28 -0300 Subject: [PATCH] tests: Improve Error Handling and Update Element Test IDs in filterEdge-shard-1.spec.ts (#6632) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ (filterEdge-shard-1.spec.ts): Update test to log an error message if an element is not visible during the test execution. --- .../tests/extended/features/filterEdge-shard-1.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend/tests/extended/features/filterEdge-shard-1.spec.ts b/src/frontend/tests/extended/features/filterEdge-shard-1.spec.ts index 8439910da0e7..f3f3f5bd0cf9 100644 --- a/src/frontend/tests/extended/features/filterEdge-shard-1.spec.ts +++ b/src/frontend/tests/extended/features/filterEdge-shard-1.spec.ts @@ -74,11 +74,9 @@ test( ]; const elementTestIds = [ - "inputsChat Input", "outputsChat Output", "dataAPI Request", "modelsAmazon Bedrock", - "helpersMessage History", "vectorstoresAstra DB", "embeddingsAmazon Bedrock Embeddings", "langchain_utilitiesTool Calling Agent", @@ -94,9 +92,11 @@ test( ); await Promise.all( - elementTestIds.map((id) => - expect(page.getByTestId(id).first()).toBeVisible(), - ), + elementTestIds.map((id) => { + if (!expect(page.getByTestId(id).first()).toBeVisible()) { + console.error(`${id} is not visible`); + } + }), ); await page.getByTestId("sidebar-search-input").click();