"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.test = void 0;
const test_1 = require("@playwright/test");
const playwright_1 = __importDefault(require("@axe-core/playwright"));
const LoginPage_1 = require("../pages/SM-8.8/LoginPage");
const HomePage_1 = require("../pages/SM-8.8/HomePage");
const NavigationPage_1 = require("../pages/SM-8.8/NavigationPage");
const ModelerHomePage_1 = require("../pages/SM-8.8/ModelerHomePage");
const ModelerCreatePage_1 = require("../pages/SM-8.8/ModelerCreatePage");
const PlayPage_1 = require("../pages/SM-8.8/PlayPage");
const TaskPanelPage_1 = require("../pages/SM-8.8/TaskPanelPage");
const TaskDetailsPage_1 = require("../pages/SM-8.8/TaskDetailsPage");
const OperateHomePage_1 = require("../pages/SM-8.8/OperateHomePage");
const OperateProcessesPage_1 = require("../pages/SM-8.8/OperateProcessesPage");
const OperateProcessInstancePage_1 = require("../pages/SM-8.8/OperateProcessInstancePage");
const OptimizeCollectionsPage_1 = require("../pages/SM-8.8/OptimizeCollectionsPage");
const OptimizeHomePage_1 = require("../pages/SM-8.8/OptimizeHomePage");
const FormJsPage_1 = require("../pages/SM-8.8/FormJsPage");
const OptimizeReportPage_1 = require("../pages/SM-8.8/OptimizeReportPage");
const ConsoleOrganizationPage_1 = require("../pages/SM-8.8/ConsoleOrganizationPage");
const SettingsPage_1 = require("../pages/SM-8.8/SettingsPage");
const ConnectorSettingsPage_1 = require("../pages/SM-8.8/ConnectorSettingsPage");
const ConnectorMarketplacePage_1 = require("../pages/SM-8.8/ConnectorMarketplacePage");
const OCIdentityHomePage_1 = require("../pages/SM-8.8/OCIdentityHomePage");
const OCIdentityMappingRulesPage_1 = require("../pages/SM-8.8/OCIdentityMappingRulesPage");
const ConsoleHomePage_1 = require("../pages/SM-8.8/ConsoleHomePage");
const OptimizeDashboardPage_1 = require("../pages/SM-8.8/OptimizeDashboardPage");
const TaskProcessesPage_1 = require("../pages/SM-8.8/TaskProcessesPage");
const IdentityUsersPage_1 = require("../pages/SM-8.8/IdentityUsersPage");
const IdentityTenantPage_1 = require("../pages/SM-8.8/IdentityTenantPage");
const ClusterDetailsPage_1 = require("../pages/SM-8.8/ClusterDetailsPage");
const ClusterPage_1 = require("../pages/SM-8.8/ClusterPage");
const ConnectorTemplatePage_1 = require("../pages/SM-8.8/ConnectorTemplatePage");
const OCIdentityRolesPage_1 = require("../pages/SM-8.8/OCIdentityRolesPage");
const ManagementIdentityPage_1 = require("../pages/SM-8.8/ManagementIdentityPage");
const KeycloakAdminPage_1 = require("../pages/SM-8.8/KeycloakAdminPage");
const KeycloakLoginPage_1 = require("../pages/SM-8.8/KeycloakLoginPage");
const OCIdentityAuthorizationsPage_1 = require("../pages/SM-8.8/OCIdentityAuthorizationsPage");
const OCIdentityGroupsPage_1 = require("../pages/SM-8.8/OCIdentityGroupsPage");
const OCTenantPage_1 = require("../pages/SM-8.8/OCTenantPage");
const IdpCreatePage_1 = require("../pages/SM-8.8/IdpCreatePage");
const test = test_1.test.extend({
    makeAxeBuilder: async ({ page }, use) => {
        const makeAxeBuilder = () => new playwright_1.default({ page }).withTags([
            'best-practice',
            'wcag2a',
            'wcag2aa',
            'cat.semantics',
            'cat.forms',
        ]);
        await use(makeAxeBuilder);
    },
    loginPage: async ({ page }, use) => {
        await use(new LoginPage_1.LoginPage(page));
    },
    homePage: async ({ page }, use) => {
        await use(new HomePage_1.HomePage(page));
    },
    navigationPage: async ({ page }, use) => {
        await use(new NavigationPage_1.NavigationPage(page));
    },
    modelerHomePage: async ({ page }, use) => {
        await use(new ModelerHomePage_1.ModelerHomePage(page));
    },
    modelerCreatePage: async ({ page }, use) => {
        await use(new ModelerCreatePage_1.ModelerCreatePage(page));
    },
    playPage: async ({ page }, use) => {
        await use(new PlayPage_1.PlayPage(page));
    },
    taskPanelPage: async ({ page }, use) => {
        await use(new TaskPanelPage_1.TaskPanelPage(page));
    },
    taskDetailsPage: async ({ page }, use) => {
        await use(new TaskDetailsPage_1.TaskDetailsPage(page));
    },
    operateHomePage: async ({ page }, use) => {
        await use(new OperateHomePage_1.OperateHomePage(page));
    },
    operateProcessesPage: async ({ page }, use) => {
        await use(new OperateProcessesPage_1.OperateProcessesPage(page));
    },
    operateProcessInstancePage: async ({ page }, use) => {
        await use(new OperateProcessInstancePage_1.OperateProcessInstancePage(page));
    },
    identityUsersPage: async ({ page }, use) => {
        await use(new IdentityUsersPage_1.IdentityUsersPage(page));
    },
    clusterPage: async ({ page }, use) => {
        await use(new ClusterPage_1.ClusterPage(page));
    },
    clusterDetailsPage: async ({ page }, use) => {
        await use(new ClusterDetailsPage_1.ClusterDetailsPage(page));
    },
    optimizeCollectionsPage: async ({ page }, use) => {
        await use(new OptimizeCollectionsPage_1.OptimizeCollectionsPage(page));
    },
    optimizeHomePage: async ({ page }, use) => {
        await use(new OptimizeHomePage_1.OptimizeHomePage(page));
    },
    formJsPage: async ({ page }, use) => {
        await use(new FormJsPage_1.FormJsPage(page));
    },
    optimizeReportPage: async ({ page }, use) => {
        await use(new OptimizeReportPage_1.OptimizeReportPage(page));
    },
    consoleOrganizationsPage: async ({ page }, use) => {
        await use(new ConsoleOrganizationPage_1.ConsoleOrganizationPage(page));
    },
    settingsPage: async ({ page }, use) => {
        await use(new SettingsPage_1.SettingsPage(page));
    },
    connectorSettingsPage: async ({ page }, use) => {
        await use(new ConnectorSettingsPage_1.ConnectorSettingsPage(page));
    },
    connectorMarketplacePage: async ({ page }, use) => {
        await use(new ConnectorMarketplacePage_1.ConnectorMarketplacePage(page));
    },
    managementIdentityPage: async ({ page }, use) => {
        await use(new ManagementIdentityPage_1.ManagementIdentityPage(page));
    },
    ocIdentityHomePage: async ({ page }, use) => {
        await use(new OCIdentityHomePage_1.OCIdentityHomePage(page));
    },
    ocIdentityMappingRulesPage: async ({ page }, use) => {
        await use(new OCIdentityMappingRulesPage_1.OCIdentityMappingRulesPage(page));
    },
    ocIdentityRolesPage: async ({ page }, use) => {
        await use(new OCIdentityRolesPage_1.OCIdentityRolesPage(page));
    },
    ocIdentityAuthorizationsPage: async ({ page }, use) => {
        await use(new OCIdentityAuthorizationsPage_1.OCIdentityAuthorizationsPage(page));
    },
    consoleHomePage: async ({ page }, use) => {
        await use(new ConsoleHomePage_1.ConsoleHomePage(page));
    },
    optimizeDashboardPage: async ({ page }, use) => {
        await use(new OptimizeDashboardPage_1.OptimizeDashboardPage(page));
    },
    taskProcessesPage: async ({ page }, use) => {
        await use(new TaskProcessesPage_1.TaskProcessesPage(page));
    },
    managementIdentityTenantPage: async ({ page }, use) => {
        await use(new IdentityTenantPage_1.IdentityTenantPage(page));
    },
    connectorTemplatePage: async ({ page }, use) => {
        await use(new ConnectorTemplatePage_1.ConnectorTemplatePage(page));
    },
    keycloakLoginPage: async ({ page }, use) => {
        await use(new KeycloakLoginPage_1.KeycloakLoginPage(page));
    },
    keycloakAdminPage: async ({ page }, use) => {
        await use(new KeycloakAdminPage_1.KeycloakAdminPage(page));
    },
    ocIdentityGroupsPage: async ({ page }, use) => {
        await use(new OCIdentityGroupsPage_1.OCIdentityGroupsPage(page));
    },
    ocTenantPage: async ({ page }, use) => {
        await use(new OCTenantPage_1.OCTenantPage(page));
    },
    idpCreatePage: async ({ page }, use) => {
        await use(new IdpCreatePage_1.IdpCreatePage(page));
    },
    overrideTrackingScripts: [
        async ({ context }, use) => {
            await context.route('https://cmp.osano.com/16CVvwSNKHi9t1grQ/9403708a-488b-4f3b-aea6-613825dec79f/osano.js', (route) => route.fulfill({
                status: 200,
                headers: {
                    'Content-Type': 'text/javascript;charset=UTF-8',
                },
                body: '',
            }));
            await use();
        },
        {
            auto: true,
        },
    ],
});
exports.test = test;
