From 8d61b6a0f46ccc399bfb8d634d80d051f2897b36 Mon Sep 17 00:00:00 2001 From: ashrafchowdury Date: Tue, 24 Dec 2024 17:53:01 +0600 Subject: [PATCH] fix(cypress): hot-fix human eval failes --- agenta-web/cypress/support/commands/evaluations.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agenta-web/cypress/support/commands/evaluations.ts b/agenta-web/cypress/support/commands/evaluations.ts index 57004db6d..1747649de 100644 --- a/agenta-web/cypress/support/commands/evaluations.ts +++ b/agenta-web/cypress/support/commands/evaluations.ts @@ -50,7 +50,8 @@ Cypress.Commands.add("createVariantsAndTestsets", () => { cy.wrap(testsetName).as("testsetName") cy.get(".ag-row").should("have.length", 1) - cy.get('[data-cy="testset-header-column-edit-button"]').eq(0).click() + cy.wait(2000) + cy.get('[data-cy="testset-header-column-edit-button"]').eq(0).should("exist").click() cy.get('[data-cy="testset-header-column-edit-input"]').clear() cy.get('[data-cy="testset-header-column-edit-input"]').type("country") cy.get('[data-cy="testset-header-column-save-button"]').click()