@tshifhiwa/ohrm-ui-automation-framework
Version:
Playwright and TypeScript–based test automation framework for validating core UI features and workflows of the OrangeHRM demo application.
21 lines (15 loc) • 959 B
text/typescript
import { test, expect } from "../../../fixtures/test.fixtures.js";
import RotationOrchestrator from "../../../src/utils/cryptography/service/rotationOrchestrator.js";
import logger from "../../../src/utils/logger/loggerManager.js";
test.describe.serial("Key Status Warnings @status-warnings", () => {
test("Check key status and log warnings", async ({ cryptoCoordinator }) => {
const status = await RotationOrchestrator.checkRotationStatus();
expect(status).toBeDefined();
expect(status.details.status).toMatch(/active|expiring_soon|expired/);
// This will trigger appropriate warnings in logs based on status
await cryptoCoordinator.encryptEnvironmentVariables(["TEST_VAR"]);
logger.info(`Key status: ${status.details.status}`);
logger.info(`Days until expiration: ${status.details.daysUntilExpiration}`);
logger.info(`Verified: Warnings logged for key status: ${status.details.status}`);
});
});