UNPKG

@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.

22 lines (17 loc) 880 B
import { test, expect } from "../../../fixtures/test.fixtures.js"; import SystemInfo from "../../../src/utils/shared/systemInfo.js"; import type { SecretKeyResult } from "../../../src/utils/cryptography/rotation/types/secretKeyResult.type.js"; import logger from "../../../src/utils/logger/loggerManager.js"; test.describe.serial("Encryption Flow @generate-key", () => { test("Generate secret key", async ({ cryptoCoordinator }) => { const result: SecretKeyResult = await cryptoCoordinator.generateAndStoreSecretKey({ rotationDays: 90, performedBy: SystemInfo.getCurrentUsername(), }); // Destructure the result const { envKey, secretKey } = result; expect(secretKey).toBeTruthy(); expect(secretKey.length).toBeGreaterThan(0); logger.info(`Verified: Secret key for '${envKey}' generated successfully`); }); });