"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConsoleHomePage = void 0;
const test_1 = require("@playwright/test");
class ConsoleHomePage {
    page;
    consoleBanner;
    licenseKeyTagNonProduction;
    licenseKeyTagProduction;
    clusterTab;
    constructor(page) {
        this.page = page;
        this.consoleBanner = page.getByRole('link', {
            name: 'Camunda logo Console',
        });
        this.licenseKeyTagNonProduction = page.getByText('Non-production license', {
            exact: true,
        });
        this.licenseKeyTagProduction = page.getByText('Production license', {
            exact: true,
        });
        this.clusterTab = page
            .getByRole('banner')
            .getByRole('link', { name: 'Clusters' });
    }
    async clickClusters() {
        await (0, test_1.expect)(this.clusterTab).toBeVisible({ timeout: 30000 });
        await this.clusterTab.click({ timeout: 90000 });
    }
}
exports.ConsoleHomePage = ConsoleHomePage;
