Skip to content

Commit

Permalink
change the text of the test definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
soujay committed Jan 30, 2025
1 parent 79070d4 commit 80c4ffd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Frontend/test/specs/configuration/viewing-license.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { licenseTabList, licenseTabNames } from "./questions/licenseTabs";

describe("FEATURE: License", () => {
describe("RULE: Platform license type should be shown shown", () => {
test("EXAMPLE: Valid platform license type should be shown", async ({ driver }) => {
test("EXAMPLE: Valid platform license type is shown", async ({ driver }) => {
await driver.setUp(precondition.serviceControlWithMonitoring);
await driver.setUp(precondition.hasActiveLicense);
await driver.goTo("/configuration/license");
Expand All @@ -22,7 +22,7 @@ describe("FEATURE: License", () => {
});

describe("RULE: License expiry date should be shown", () => {
test("EXAMPLE: Valid license expiry date should be shown", async ({ driver }) => {
test("EXAMPLE: Valid license expiry date is shown", async ({ driver }) => {
await driver.setUp(precondition.serviceControlWithMonitoring);
await driver.setUp(precondition.hasActiveLicense);
await driver.goTo("/configuration/license");
Expand All @@ -33,15 +33,15 @@ describe("FEATURE: License", () => {
});

describe("RULE: License expired", () => {
test("EXAMPLE: An expired license should show 'expired'", async ({ driver }) => {
test("EXAMPLE: An expired license shows 'expired'", async ({ driver }) => {
await driver.setUp(precondition.serviceControlWithMonitoring);
await driver.setUp(precondition.hasExpiredLicense(LicenseType.Subscription, 5)); //license expired 6 days before
await driver.goTo("/configuration/license");
await waitFor(async () => {
expect(await licenseExpired()).toBe("Your license expired. Please update the license to continue using the Particular Service Platform.");
});
});
test("EXAMPLE: An expired license should show only the license and usage setup tabs", async ({ driver }) => {
test("EXAMPLE: An expired license shows only the license and usage setup tabs", async ({ driver }) => {
await driver.setUp(precondition.serviceControlWithMonitoring);
await driver.setUp(precondition.hasExpiredLicense(LicenseType.Subscription, 5)); //license expired 6 days before
await driver.goTo("/configuration/license");
Expand All @@ -53,7 +53,7 @@ describe("FEATURE: License", () => {
});

describe("RULE: License expiring soon must be displayed", () => {
test("EXAMPLE: License expiring with x days should show 'expiring in X days'", async ({ driver }) => {
test("EXAMPLE: License expiring with x days shows 'expiring in X days'", async ({ driver }) => {
await driver.setUp(precondition.serviceControlWithMonitoring);
await driver.setUp(precondition.hasExpiringLicense(LicenseType.Subscription, 10));
await driver.goTo("/configuration/license");
Expand All @@ -62,7 +62,7 @@ describe("FEATURE: License", () => {
expect((await licenseExpiryDaysLeft()).textContent).toContain("expiring in"); //License expiry date: 2/5/2025 - expiring in 11 days
});
});
test("EXAMPLE: License expiring tomorrow should show 'expiring tomorrow'", async ({ driver }) => {
test("EXAMPLE: License expiring tomorrow shows 'expiring tomorrow'", async ({ driver }) => {
await driver.setUp(precondition.serviceControlWithMonitoring);
await driver.setUp(precondition.hasExpiringLicense(LicenseType.Subscription, 0));
await driver.goTo("/configuration/license");
Expand All @@ -71,7 +71,7 @@ describe("FEATURE: License", () => {
expect((await licenseExpiryDaysLeft()).textContent).toContain("expiring tomorrow");

Check failure on line 71 in src/Frontend/test/specs/configuration/viewing-license.spec.ts

View workflow job for this annotation

GitHub Actions / Windows

test/specs/configuration/viewing-license.spec.ts > FEATURE: License > RULE: License expiring soon must be displayed > EXAMPLE: License expiring tomorrow shows 'expiring tomorrow'

AssertionError: expected ' - expiring today' to contain 'expiring tomorrow' Ignored nodes: comments, script, style <html> <head> <title> Connections • ServicePulse </title> </head> <body> <div data-v-app="" id="app" > <nav class="navbar navbar-expand-lg navbar-inverse navbar-dark" data-v-628430e3="" > <div class="container-fluid" data-v-628430e3="" > <div class="navbar-header" data-v-628430e3="" > <a class="navbar-brand" data-v-628430e3="" href="#/dashboard" > <img alt="Service Pulse" data-v-628430e3="" src="/src/assets/logo.svg" /> </a> </div> <div class="navbar navbar-expand-lg" data-v-628430e3="" id="navbar" > <ul class="nav navbar-nav navbar-inverse" data-v-628430e3="" > <li data-v-628430e3="" > <a class="" data-v-628430e3="" data-v-d1b220e4="" href="#/dashboard" > <i class="fa fa-dashboard icon-white" data-v-d1b220e4="" title="Dashboard" /> <span class="navbar-label" data-v-d1b220e4="" > Dashboard </span> </a> </li> <li data-v-628430e3="" > <a class="" data-v-628430e3="" data-v-e714ff03="" href="#/heartbeats" > <i class="fa fa-heartbeat icon-white" data-v-e714ff03="" title="Heartbeats" /> <span class="navbar-label" data-v-e714ff03="" > Heartbeats </span> </a> </li> <li data-v-628430e3="" > <a class="" data-v-628430e3="" data-v-b1c0809e="" href="#/monitoring" > <i class="fa pa-monitoring icon-white" data-v-b1c0809e="" title="Monitoring" /> <span class="navbar-label" data-v-b1c0809e="" > Monitoring </span> </a> </li> <li data-v-628430e3="" > <a class="" data-v-628430e3="" data-v-7acc762f="" href="#/failed-messages" > <i class="fa fa-envelope icon-white" data-v-7acc762f="" title="Failed Messages" /> <span class="navbar-label" data-v-7acc762f="" > Failed Messages </span> </a> </li> <li data-v-628430e3="" > <a class="" data-v-4898b120="" data-v-628430e3="" href="#/custom-checks" > <i class="fa fa-check icon-white" data-v-4898b120="" title="Cus
});
});
test("EXAMPLE: License expiring today should show 'expiring today'", async ({ driver }) => {
test("EXAMPLE: License expiring today shows 'expiring today'", async ({ driver }) => {
await driver.setUp(precondition.serviceControlWithMonitoring);
await driver.setUp(precondition.hasExpiringLicense(LicenseType.Subscription, -1));
await driver.goTo("/configuration/license");
Expand All @@ -83,7 +83,7 @@ describe("FEATURE: License", () => {
});

describe("RULE: Upgrade Protection license expiring soon must be displayed", () => {
test("EXAMPLE: Upgrade Protection license expiring with x days should show 'X days left'", async ({ driver }) => {
test("EXAMPLE: Upgrade Protection license expiring with x days shows 'X days left'", async ({ driver }) => {
await driver.setUp(precondition.serviceControlWithMonitoring);
await driver.setUp(precondition.hasExpiringLicense(LicenseType.UpgradeProtection, 10));
await driver.goTo("/configuration/license");
Expand All @@ -92,7 +92,7 @@ describe("FEATURE: License", () => {
expect((await licenseExpiryDaysLeft()).textContent).toContain("days left"); //License expiry date: 2/5/2025 - expiring in 11 days
});
});
test("EXAMPLE: Upgrade Protection license expiring tomorrow should show 'expiring tomorrow'", async ({ driver }) => {
test("EXAMPLE: Upgrade Protection license expiring tomorrow shows 'expiring tomorrow'", async ({ driver }) => {
await driver.setUp(precondition.serviceControlWithMonitoring);
await driver.setUp(precondition.hasExpiringLicense(LicenseType.UpgradeProtection, 0));
await driver.goTo("/configuration/license");
Expand All @@ -101,7 +101,7 @@ describe("FEATURE: License", () => {
expect((await licenseExpiryDaysLeft()).textContent).toContain("1 day left");

Check failure on line 101 in src/Frontend/test/specs/configuration/viewing-license.spec.ts

View workflow job for this annotation

GitHub Actions / Windows

test/specs/configuration/viewing-license.spec.ts > FEATURE: License > RULE: Upgrade Protection license expiring soon must be displayed > EXAMPLE: Upgrade Protection license expiring tomorrow shows 'expiring tomorrow'

AssertionError: expected ' - expired' to contain '1 day left' Ignored nodes: comments, script, style <html> <head> <title> Connections • ServicePulse </title> </head> <body> <div data-v-app="" id="app" > <nav class="navbar navbar-expand-lg navbar-inverse navbar-dark" data-v-628430e3="" > <div class="container-fluid" data-v-628430e3="" > <div class="navbar-header" data-v-628430e3="" > <a class="navbar-brand" data-v-628430e3="" href="#/dashboard" > <img alt="Service Pulse" data-v-628430e3="" src="/src/assets/logo.svg" /> </a> </div> <div class="navbar navbar-expand-lg" data-v-628430e3="" id="navbar" > <ul class="nav navbar-nav navbar-inverse" data-v-628430e3="" > <li data-v-628430e3="" > <a class="" data-v-628430e3="" data-v-d1b220e4="" href="#/dashboard" > <i class="fa fa-dashboard icon-white" data-v-d1b220e4="" title="Dashboard" /> <span class="navbar-label" data-v-d1b220e4="" > Dashboard </span> </a> </li> <li data-v-628430e3="" > <a class="" data-v-628430e3="" data-v-e714ff03="" href="#/heartbeats" > <i class="fa fa-heartbeat icon-white" data-v-e714ff03="" title="Heartbeats" /> <span class="navbar-label" data-v-e714ff03="" > Heartbeats </span> </a> </li> <li data-v-628430e3="" > <a class="" data-v-628430e3="" data-v-b1c0809e="" href="#/monitoring" > <i class="fa pa-monitoring icon-white" data-v-b1c0809e="" title="Monitoring" /> <span class="navbar-label" data-v-b1c0809e="" > Monitoring </span> </a> </li> <li data-v-628430e3="" > <a class="" data-v-628430e3="" data-v-7acc762f="" href="#/failed-messages" > <i class="fa fa-envelope icon-white" data-v-7acc762f="" title="Failed Messages" /> <span class="navbar-label" data-v-7acc762f="" > Failed Messages </span> </a> </li> <li data-v-628430e3="" > <a class="" data-v-4898b120="" data-v-628430e3="" href="#/custom-checks" > <i class="fa fa-check icon-white" data-v-4898b120="" title="Custom Checks"
});
});
test("EXAMPLE: Upgrade Protection license expiring today should show 'expired'", async ({ driver }) => {
test("EXAMPLE: Upgrade Protection license expiring today shows 'expired'", async ({ driver }) => {
await driver.setUp(precondition.serviceControlWithMonitoring);
await driver.setUp(precondition.hasExpiringLicense(LicenseType.UpgradeProtection, -1));
await driver.goTo("/configuration/license");
Expand Down

0 comments on commit 80c4ffd

Please sign in to comment.