Skip to content

Commit

Permalink
added logs for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammedMaaz committed Dec 11, 2023
1 parent 49f1ff0 commit c55fb98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion agenta-web/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions agenta-web/cypress/support/commands/evaluations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit c55fb98

Please sign in to comment.