From a0e15e86fff6583f4eb4931edd03d9104629717e Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Thu, 19 Dec 2024 14:41:15 +0100 Subject: [PATCH] fixed failing cypress test(frontend) --- agenta-web/cypress/e2e/eval.evaluations.cy.ts | 2 ++ agenta-web/cypress/support/commands/evaluations.ts | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/agenta-web/cypress/e2e/eval.evaluations.cy.ts b/agenta-web/cypress/e2e/eval.evaluations.cy.ts index 2324923abb..fee60cf455 100644 --- a/agenta-web/cypress/e2e/eval.evaluations.cy.ts +++ b/agenta-web/cypress/e2e/eval.evaluations.cy.ts @@ -50,6 +50,8 @@ describe("Evaluations CRUD Operations Test", function () { cy.get(".ant-table-row").eq(0).click() cy.wait(1000) cy.contains(/create a new test set/i).should("be.visible") + cy.get(".ag-root").should("exist") + cy.wait(3000) cy.get('[data-cy="testset-header-column-edit-button"]').eq(1).click() cy.get('[data-cy="testset-header-column-edit-input"]').clear() cy.get('[data-cy="testset-header-column-edit-input"]').type("answer") diff --git a/agenta-web/cypress/support/commands/evaluations.ts b/agenta-web/cypress/support/commands/evaluations.ts index c01d83092b..57004db6d5 100644 --- a/agenta-web/cypress/support/commands/evaluations.ts +++ b/agenta-web/cypress/support/commands/evaluations.ts @@ -104,7 +104,6 @@ Cypress.Commands.add("createNewEvaluation", (evaluatorName = "Exact Match") => { cy.get('[data-cy="evaluation-testset-table"]').find('input[type="radio"]').eq(0).check() - cy.get('[data-cy="evaluation-variant-collapse-header"]').click() cy.get('[data-cy="evaluation-variant-table"]').find('input[type="checkbox"]').eq(0).check() cy.get('[data-cy="evaluation-evaluator-collapse-header"]').click()