"use strict";
/*
 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
 * one or more contributor license agreements. See the NOTICE file distributed
 * with this work for additional information regarding copyright ownership.
 * Licensed under the Camunda License 1.0. You may not use this file
 * except in compliance with the Camunda License 1.0.
 */
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 OperateLoginPage_1 = require("../pages/c8Run-8.9/OperateLoginPage");
const OperateHomePage_1 = require("../pages/c8Run-8.9/OperateHomePage");
const TaskPanelPage_1 = require("../pages/c8Run-8.9/TaskPanelPage");
const TaskListLoginPage_1 = require("../pages/c8Run-8.9/TaskListLoginPage");
const OperateProcessesPage_1 = require("../pages/c8Run-8.9/OperateProcessesPage");
const OperateProcessInstancePage_1 = require("../pages/c8Run-8.9/OperateProcessInstancePage");
const TaskDetailsPage_1 = require("../pages/c8Run-8.9/TaskDetailsPage");
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);
    },
    operateLoginPage: async ({ page }, use) => {
        await use(new OperateLoginPage_1.OperateLoginPage(page));
    },
    operateHomePage: async ({ page }, use) => {
        await use(new OperateHomePage_1.OperateHomePage(page));
    },
    taskListLoginPage: async ({ page }, use) => {
        await use(new TaskListLoginPage_1.TaskListLoginPage(page));
    },
    taskPanelPage: async ({ page }, use) => {
        await use(new TaskPanelPage_1.TaskPanelPage(page));
    },
    operateProcessesPage: async ({ page }, use) => {
        await use(new OperateProcessesPage_1.OperateProcessesPage(page));
    },
    operateProcessInstancePage: async ({ page }, use) => {
        await use(new OperateProcessInstancePage_1.OperateProcessInstancePage(page));
    },
    taskDetailsPage: async ({ page }, use) => {
        await use(new TaskDetailsPage_1.TaskDetailsPage(page));
    },
});
exports.test = test;
