diff --git a/maestro-cli/src/main/java/maestro/cli/cloud/CloudInteractor.kt b/maestro-cli/src/main/java/maestro/cli/cloud/CloudInteractor.kt index f0e3c691f4..c96b3eeeaf 100644 --- a/maestro-cli/src/main/java/maestro/cli/cloud/CloudInteractor.kt +++ b/maestro-cli/src/main/java/maestro/cli/cloud/CloudInteractor.kt @@ -23,6 +23,7 @@ import maestro.cli.util.WorkspaceUtils import maestro.cli.view.ProgressBar import maestro.cli.view.TestSuiteStatusView import maestro.cli.view.TestSuiteStatusView.TestSuiteViewModel.Companion.toViewModel +import maestro.cli.view.TestSuiteStatusView.robinUploadUrl import maestro.cli.view.TestSuiteStatusView.uploadUrl import maestro.cli.view.box import maestro.utils.TemporaryDirectory @@ -135,9 +136,8 @@ class CloudInteractor( println() val project = requireNotNull(projectId) val appId = response.appId - val uploadUrl = uploadUrl(project, appId, client.domain) + val uploadUrl = robinUploadUrl(project, appId, response.uploadId, client.domain) val deviceMessage = if (response.deviceConfiguration != null) printDeviceInfo(response.deviceConfiguration) else "" - val appBinaryIdResponseId = if (appBinaryId != null) response.appBinaryId else null return printMaestroCloudResponse( async, authToken, @@ -148,7 +148,7 @@ class CloudInteractor( uploadUrl, deviceMessage, appId, - appBinaryIdResponseId, + response.appBinaryId, response.uploadId, projectId, ) @@ -252,7 +252,7 @@ class CloudInteractor( private fun printDeviceInfo(deviceConfiguration: DeviceConfiguration): String { val platform = Platform.fromString(deviceConfiguration.platform) - val line1 = "Maestro Cloud device specs:\n* ${deviceConfiguration.displayInfo} - ${deviceConfiguration.deviceLocale}" + val line1 = "Robin device specs:\n* ${deviceConfiguration.displayInfo} - ${deviceConfiguration.deviceLocale}" val line2 = "To change OS version use this option: ${if (platform == Platform.IOS) "--ios-version=" else "--android-api-level="}" val line3 = "To change device locale use this option: --device-locale=" diff --git a/maestro-cli/src/main/java/maestro/cli/view/TestSuiteStatusView.kt b/maestro-cli/src/main/java/maestro/cli/view/TestSuiteStatusView.kt index 81511a6523..b3e7c48fd9 100644 --- a/maestro-cli/src/main/java/maestro/cli/view/TestSuiteStatusView.kt +++ b/maestro-cli/src/main/java/maestro/cli/view/TestSuiteStatusView.kt @@ -123,15 +123,16 @@ object TestSuiteStatusView { domain: String = "mobile.dev", ) = "https://console.$domain/uploads/$uploadId?teamId=$teamId&appId=$appId" - fun uploadUrl( + fun robinUploadUrl( projectId: String, appId: String, + uploadId: String, domain: String = "" ): String { return if (domain.contains("localhost")) { - "http://localhost:3000/project/$projectId/maestro-tests/app/$appId" + "http://localhost:3000/project/$projectId/maestro-test/app/$appId/upload/$uploadId" } else { - "https://copilot.mobile.dev/project/$projectId/maestro-tests/app/$appId" + "https://app.robintest.com/project/$projectId/maestro-test/app/$appId/upload/$uploadId" } }