From 042c8632112495101c7a4ff0904191efac1de044 Mon Sep 17 00:00:00 2001 From: Jayanthi Date: Sat, 25 Jan 2025 22:17:13 -0800 Subject: [PATCH] add licensing test for expiring and expired licenses --- .../configuration/PlatformLicense.vue | 6 +- src/Frontend/src/resources/LicenseInfo.ts | 5 + src/Frontend/test/preconditions/hasLicense.ts | 12 +- src/Frontend/test/preconditions/index.ts | 1 + src/Frontend/test/preconditions/licensing.ts | 56 +++++++++ .../configuration/questions/licenseExpired.ts | 6 + .../questions/licenseExpiryDate.ts | 5 +- .../questions/licenseExpiryDaysLeft.ts | 5 +- .../configuration/viewing-license.spec.ts | 106 +++++++++--------- .../licensing/license-enforcement.spec.ts | 13 ++- .../trial-license-notifications.spec.ts | 5 +- 11 files changed, 140 insertions(+), 80 deletions(-) create mode 100644 src/Frontend/test/preconditions/licensing.ts create mode 100644 src/Frontend/test/specs/configuration/questions/licenseExpired.ts diff --git a/src/Frontend/src/components/configuration/PlatformLicense.vue b/src/Frontend/src/components/configuration/PlatformLicense.vue index c238f4dba2..9efc81c08d 100644 --- a/src/Frontend/src/components/configuration/PlatformLicense.vue +++ b/src/Frontend/src/components/configuration/PlatformLicense.vue @@ -40,16 +40,16 @@ const loading = computed(() => { License expiry date: {{ license.formattedExpirationDate }} - {{ licenseStatus.subscriptionDaysLeft }} + {{ licenseStatus.subscriptionDaysLeft }} -
Your license expired. Please update the license to continue using the Particular Service Platform.
+
Your license expired. Please update the license to continue using the Particular Service Platform.