"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OCIdentityAuthorizationsPage = void 0;
const Authorization_1 = require("../8.10/Authorization");
const test_1 = require("@playwright/test");
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
class OCIdentityAuthorizationsPage extends Authorization_1.Authorization {
    constructor(page) {
        super(page);
    }
    async clickProcessDefinitionTab() {
        await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.selectResourceTypeTab('PROCESS_DEFINITION'));
        await this.selectResourceTypeTab('PROCESS_DEFINITION').click();
    }
    async clickAuthorizationTab() {
        await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.selectResourceTypeTab('AUTHORIZATION'));
        await this.selectResourceTypeTab('AUTHORIZATION').click();
    }
    async clickRoleTab() {
        await (0, test_1.expect)(this.selectResourceTypeTab('Role')).toBeVisible();
        await this.selectResourceTypeTab('Role').click();
    }
    async clickComponentTab() {
        await (0, test_1.expect)(this.selectResourceTypeTab('COMPONENT')).toBeVisible();
        await this.selectResourceTypeTab('COMPONENT').click();
    }
    async clickResourceTab() {
        await (0, test_1.expect)(this.selectResourceTypeTab('RESOURCE')).toBeVisible();
        await this.selectResourceTypeTab('RESOURCE').click();
    }
}
exports.OCIdentityAuthorizationsPage = OCIdentityAuthorizationsPage;
