From c55fb9845d4d1af2d50ffa013eba5d111c83fdfc Mon Sep 17 00:00:00 2001 From: MohammedMaaz Date: Mon, 11 Dec 2023 14:59:08 +0500 Subject: [PATCH] added logs for debugging --- agenta-web/cypress.config.ts | 10 +++++++++- agenta-web/cypress/support/commands/evaluations.ts | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) 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..cb951536ab 100644 --- a/agenta-web/cypress/support/commands/evaluations.ts +++ b/agenta-web/cypress/support/commands/evaluations.ts @@ -36,6 +36,10 @@ 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.wait(3000) + cy.get('[data-cy="enter-app-name-modal"]') .should("exist") .within(() => {