From 5075ea9929fee098ab75c543f8344f780bc4ea80 Mon Sep 17 00:00:00 2001 From: Teal Larson Date: Fri, 23 Aug 2024 12:58:18 -0400 Subject: [PATCH] test: use bash instead of gradle for frontend e2e open (#13656) --- airbyte-webapp/build.gradle.kts | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/airbyte-webapp/build.gradle.kts b/airbyte-webapp/build.gradle.kts index 018d6879c44..69563c99f66 100644 --- a/airbyte-webapp/build.gradle.kts +++ b/airbyte-webapp/build.gradle.kts @@ -134,31 +134,6 @@ tasks.register("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("cypressCloud") { dependsOn(tasks.named("pnpmInstall"))