"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeycloakLoginPage = void 0;
const test_1 = require("@playwright/test");
class KeycloakLoginPage {
    page;
    keycloakBanner;
    constructor(page) {
        this.page = page;
        this.keycloakBanner = page.locator('[class="kc-logo-text"]');
    }
    async toBeVisible() {
        await (0, test_1.expect)(this.keycloakBanner).toBeVisible({ timeout: 60000 });
    }
    async fillUsername(username) {
        await this.page.fill('#username', username);
    }
    async fillPassword(password) {
        await this.page.fill('#password', password);
    }
    async clickLogin() {
        await this.page.click('input[type="submit"]');
    }
}
exports.KeycloakLoginPage = KeycloakLoginPage;
