"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('#keycloak-bg');
    }
    async toBeVisible() {
        await (0, test_1.expect)(this.keycloakBanner).toBeVisible();
    }
    async fillUsername(username) {
        await this.page.fill('#username', username);
    }
    async fillPassword(password) {
        await this.page.fill('#password', password);
    }
    async clickLogin() {
        await this.page.click('button[type="submit"]');
    }
}
exports.KeycloakLoginPage = KeycloakLoginPage;
