diff --git a/agenta-web/cypress.config.ts b/agenta-web/cypress.config.ts index 6824bd5527..432b8a894d 100644 --- a/agenta-web/cypress.config.ts +++ b/agenta-web/cypress.config.ts @@ -8,9 +8,17 @@ export default defineConfig({ video: false, screenshotOnRunFailure: false, e2e: { - baseUrl: "http://localhost", + baseUrl: "http://localhost:3000", defaultCommandTimeout: 30000, requestTimeout: 10000, + setupNodeEvents(on) { + on("task", { + log(message) { + console.log(message) + return null + }, + }) + }, }, env: { baseApiURL: "http://localhost/api", diff --git a/agenta-web/cypress/support/commands/evaluations.ts b/agenta-web/cypress/support/commands/evaluations.ts index b48545c154..4db25035d7 100644 --- a/agenta-web/cypress/support/commands/evaluations.ts +++ b/agenta-web/cypress/support/commands/evaluations.ts @@ -36,6 +36,8 @@ Cypress.Commands.add("createVariant", () => { cy.get('[data-cy^="create-app-button"]').eq(0).click() const appName = randString(5) + cy.task("log", `App name: ${appName}`) + cy.get('[data-cy="enter-app-name-modal"]') .should("exist") .within(() => {