Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion agenta-web/cypress/support/commands/evaluations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,22 @@ const countries = [
Cypress.Commands.add("createVariant", () => {
cy.addingOpenaiKey()
cy.visit("/apps")
cy.get('[data-cy="create-new-app-button"]').click()

// Check if there are app variants present
cy.request({
url: `${Cypress.env().baseApiURL}/organizations/`,
method: "GET",
}).then((res) => {
cy.request({
url: `${Cypress.env().baseApiURL}/apps/?org_id=${res.body[0].id}`,
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()
cy.get('[data-cy="create-app-button"]').click()
const appName = randString(5)
Expand Down
6 changes: 5 additions & 1 deletion agenta-web/src/components/AppSelector/Welcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ const Welcome: React.FC<Props> = ({onWriteOwnApp, onCreateFromTemplate}) => {
<h2>The developer-first open source LLMOps platform.</h2>
</section>
<section className={classes.wrapper}>
<div className={classes.container} onClick={onCreateFromTemplate}>
<div
className={classes.container}
onClick={onCreateFromTemplate}
data-cy="create-from-template"
>
<div className={classes.title}>
<h1>Quickstart From a Template</h1>
</div>
Expand Down