"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const SM_8_6_1 = require("../../fixtures/SM-8.6");
const _setup_1 = require("../../test-setup.js");
const test_1 = require("@playwright/test");
const env_1 = require("../../utils/env");
SM_8_6_1.test.describe.configure({ mode: 'parallel' });
SM_8_6_1.test.describe('Console User Flow Tests', () => {
    SM_8_6_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
        await navigationPage.goToConsole((testInfo.workerIndex + 1) * 1000);
    });
    SM_8_6_1.test.afterEach(async ({ page }, testInfo) => {
        await (0, _setup_1.captureScreenshot)(page, testInfo);
        await (0, _setup_1.captureFailureVideo)(page, testInfo);
    });
    (0, SM_8_6_1.test)('Default License Key User Flow', async ({ navigationPage, identityPage, modelerHomePage, taskPanelPage, operateHomePage, optimizeHomePage, consoleHomePage, }) => {
        await SM_8_6_1.test.step('Assert Console License Key Tag', async () => {
            await (0, test_1.expect)(consoleHomePage.licenseKeyTagNonProduction).toBeVisible({
                timeout: 60000,
            });
        });
        await SM_8_6_1.test.step('Assert Identity License Key Tag', async () => {
            await navigationPage.goToIdentity();
            await (0, test_1.expect)(identityPage.licenseKeyTagNonProduction).toBeVisible({
                timeout: 60000,
            });
        });
        await SM_8_6_1.test.step('Assert Web Modeler License Key Tag', async () => {
            await navigationPage.goToModeler();
            await (0, test_1.expect)(modelerHomePage.licenseKeyTagNonProduction).toBeVisible({
                timeout: 60000,
            });
        });
        await SM_8_6_1.test.step('Assert Tasklist License Key Tag', async () => {
            await navigationPage.goToTasklist();
            await (0, test_1.expect)(taskPanelPage.licenseKeyTagNonProduction).toBeVisible({
                timeout: 60000,
            });
        });
        await SM_8_6_1.test.step('Assert Operate License Key Tag', async () => {
            await navigationPage.goToOperate();
            await (0, test_1.expect)(operateHomePage.licenseKeyTagNonProduction).toBeVisible({
                timeout: 60000,
            });
        });
        if (!env_1.isOpenSearch) {
            await SM_8_6_1.test.step('Assert Optimize License Key Tag', async () => {
                await navigationPage.goToOptimize();
                await (0, test_1.expect)(optimizeHomePage.licenseKeyTagNonProduction).toBeVisible({
                    timeout: 60000,
                });
            });
        }
    });
});
