tests: Improve Error Handling and Update Element Test IDs in filterEdge-shard-1.spec.ts (#6632)
✨ (filterEdge-shard-1.spec.ts): Update test to log an error message if an element is not visible during the test execution.
This commit is contained in:
parent
45e2f739d5
commit
d4c04c89fe
1 changed files with 5 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue