Skip to content

Commit

Permalink
test(frontend): fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bekossy committed Dec 2, 2024
1 parent 8f702bd commit b3660b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
13 changes: 1 addition & 12 deletions agenta-web/cypress/support/commands/evaluations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,7 @@ Cypress.Commands.add("createVariant", () => {
cy.addingOpenaiKey()
cy.visit("/apps")

// Check if there are app variants present
cy.request({
url: `${Cypress.env().baseApiURL}/apps`,
method: "GET",
}).then((resp) => {
if (resp.body.length) {
cy.get('[data-cy="create-new-app-button"]').click()
cy.get('[data-cy="create-from-template"]').click()
} else {
cy.get('[data-cy="create-from-template"]').click()
}
})
cy.get('[data-cy="create-from-template"]').click()

const appName = randString(5)
cy.task("log", `App name: ${appName}`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const GetStartedSection = ({
setIsAddAppFromTemplatedModal(true)
}
}}
data-cy="create-from-template"
>
<div className="flex items-center justify-between">
<Text>Create New Prompt</Text>
Expand Down

0 comments on commit b3660b4

Please sign in to comment.