Skip to content

Commit

Permalink
test: use bash instead of gradle for frontend e2e open (#13656)
Browse files Browse the repository at this point in the history
  • Loading branch information
teallarson committed Aug 23, 2024
1 parent 2e68b59 commit 5075ea9
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions airbyte-webapp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -134,31 +134,6 @@ tasks.register<PnpmTask>("cypress") {
outputs.upToDateWhen { false }
}

tasks.register("cypressOpen") {
doLast {
println("Starting the development server...")

val processBuilder = ProcessBuilder("pnpm", "start", "--oss-k8s")
processBuilder.redirectOutput(ProcessBuilder.Redirect.INHERIT)
processBuilder.redirectError(ProcessBuilder.Redirect.INHERIT)

// Start the process
val process = processBuilder.start()

// Give the server time to start
Thread.sleep(10000) // Adjust this as needed

println("Running Cypress tests...")
exec {
commandLine("pnpm", "run", "cypress:open")
}

// After Cypress is done, stop the server
println("Stopping the development server...")
process.destroy() // Send a SIGTERM to the server process
process.waitFor() // Wait for the process to terminate
}
}

tasks.register<PnpmTask>("cypressCloud") {
dependsOn(tasks.named("pnpmInstall"))
Expand Down

0 comments on commit 5075ea9

Please sign in to comment.