From f6bbc0f0d8a93e7a1295a467f1d6b5da4f12a50e Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Sat, 2 Dec 2023 08:34:55 +0100 Subject: [PATCH 01/26] test: modifies playground --- agenta-web/cypress/e2e/playground.cy.ts | 2 +- agenta-web/src/components/Playground/Views/TestView.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agenta-web/cypress/e2e/playground.cy.ts b/agenta-web/cypress/e2e/playground.cy.ts index da8a2aad3a..a486e47257 100644 --- a/agenta-web/cypress/e2e/playground.cy.ts +++ b/agenta-web/cypress/e2e/playground.cy.ts @@ -4,7 +4,7 @@ describe("Playground Prompt Test", function () { }) it("Should test prompt functionality in the Playground", () => { - cy.get('[data-cy="testview-input-parameters-0"]').type("Germany") + cy.get('[data-cy^="testview-input-parameters"]').eq(0).type("Germany") cy.get('[data-cy="testview-input-parameters-run-button"]').click() cy.get('[data-cy="testview-input-parameters-result"]').should("contain.text", "Loading...") cy.get('[data-cy="testview-input-parameters-result"]').should( diff --git a/agenta-web/src/components/Playground/Views/TestView.tsx b/agenta-web/src/components/Playground/Views/TestView.tsx index ba34c49c78..bb2300b99e 100644 --- a/agenta-web/src/components/Playground/Views/TestView.tsx +++ b/agenta-web/src/components/Playground/Views/TestView.tsx @@ -150,7 +150,7 @@ const BoxComponent: React.FC = ({ ) : ( inputParamsNames.map((key, index) => (