"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClusterDetailsPage = void 0;
const test_1 = require("@playwright/test");
class ClusterDetailsPage {
    page;
    customPropertiesHeading;
    constructor(page) {
        this.page = page;
        this.customPropertiesHeading = this.page.getByRole('heading', {
            name: 'Custom properties',
        });
    }
    async assertCustomPropertyIsNavigated(linkTitle, linkName, link) {
        const pageTabPromise = this.page.waitForEvent('popup', {
            timeout: 60000,
        });
        await this.page
            .getByRole('row', { name: linkTitle })
            .getByRole('link', { name: linkName })
            .click({
            timeout: 60000,
        });
        const camundaPage = await pageTabPromise;
        await (0, test_1.expect)(camundaPage).toHaveURL(link);
    }
}
exports.ClusterDetailsPage = ClusterDetailsPage;
