"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const test_1 = require("@playwright/test");
const _setup_1 = require("../../test-setup.js");
const _8_9_1 = require("../../fixtures/8.9");
const sleep_1 = require("../../utils/sleep");
_8_9_1.test.describe.configure({ mode: 'parallel' });
_8_9_1.test.describe('Login Tests - invalid-input - (negative) generated', () => {
    _8_9_1.test.beforeEach(async ({ page }, testInfo) => {
        await page.goto('/');
        await (0, sleep_1.sleep)((testInfo.workerIndex + 1) * 1000);
    });
    _8_9_1.test.afterEach(async ({ page }, testInfo) => {
        await (0, _setup_1.captureScreenshot)(page, testInfo);
        await (0, _setup_1.captureFailureVideo)(page, testInfo);
    });
    (0, _8_9_1.test)('Basic Login - invalid usernameInput minlength', async ({ loginPage }) => {
        const usernameInputTooShort = 'aaaa';
        await loginPage.fillUsername(usernameInputTooShort);
        await loginPage.clickContinueButton();
        await (0, test_1.expect)(loginPage.usernameInput.locator).toHaveAttribute('aria-invalid', 'true');
    });
    (0, _8_9_1.test)('Basic Login - invalid usernameInput maxlength', async ({ loginPage }) => {
        const usernameInputTooLong = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
        await loginPage.fillUsername(usernameInputTooLong);
        await loginPage.clickContinueButton();
        await (0, test_1.expect)(loginPage.usernameInput.locator).toHaveAttribute('aria-invalid', 'true');
    });
});
