From c90c0433515c0c360289b82e7ca95e087b99abcc Mon Sep 17 00:00:00 2001 From: Adrian Riobo Lorenzo Date: Tue, 28 Sep 2021 15:03:36 +0200 Subject: [PATCH] e2e: notification messages per platform --- test/extended/crc/ux/notification/const.go | 3 --- test/extended/crc/ux/notification/notification_unix.go | 4 ++++ test/extended/crc/ux/notification/notification_windows.go | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/test/extended/crc/ux/notification/const.go b/test/extended/crc/ux/notification/const.go index 35a1b18a1c..f0b7da885e 100644 --- a/test/extended/crc/ux/notification/const.go +++ b/test/extended/crc/ux/notification/const.go @@ -1,9 +1,6 @@ package notification const ( - startMessage string = "OpenShift cluster is running" - stopMessage string = "The OpenShift Cluster was successfully stopped" - deleteMessage string = "The OpenShift Cluster is successfully deleted" // copyCommandMessage string = "OC Login command copied to clipboard, go ahead and login to your cluster" notificationWaitTimeout int = 200 diff --git a/test/extended/crc/ux/notification/notification_unix.go b/test/extended/crc/ux/notification/notification_unix.go index e769df73db..9b9ee8bdc0 100644 --- a/test/extended/crc/ux/notification/notification_unix.go +++ b/test/extended/crc/ux/notification/notification_unix.go @@ -13,6 +13,10 @@ type applescriptHandler struct { } const ( + startMessage string = "OpenShift cluster is running" + stopMessage string = "The OpenShift Cluster was successfully stopped" + deleteMessage string = "The OpenShift Cluster is successfully deleted" + scriptsRelativePath string = "applescripts" manageNotifications string = "manageNotifications.applescript" manageNotificationActionGet string = "get" diff --git a/test/extended/crc/ux/notification/notification_windows.go b/test/extended/crc/ux/notification/notification_windows.go index 78064e5aa4..df52a7fde9 100644 --- a/test/extended/crc/ux/notification/notification_windows.go +++ b/test/extended/crc/ux/notification/notification_windows.go @@ -14,6 +14,10 @@ type gowinxHandler struct { } const ( + startMessage string = "CodeReady Containers Cluster has started" + stopMessage string = "Cluster stopped" + deleteMessage string = "Cluster deleted" + notificationGroupName string = "CodeReady Containers" )