import { expect, screenshot, test } from "../../../../../../playwright/src/index";
const TAG = 'bal-navbar';
const VARIANTS = ['basic', 'simple-light', 'container'];
const image = screenshot(TAG);
test.beforeEach('Setup', async ({ page }) => {
    await page.setupVisualTest(`/components/${TAG}/test/${TAG}.visual.html`);
});
VARIANTS.forEach(variant => {
    test(variant, async ({ page }) => {
        const el = page.getByTestId(variant);
        await expect(el).toHaveScreenshot(image(`${variant}`));
    });
});
test('toggle', async ({ page }) => {
    const el = page.getByTestId('toggle');
    const buttonEl = page.getByTestId('toggle-button');
    await expect(el).toHaveScreenshot(image(`toggle-before`));
    await buttonEl.click();
    await expect(el).toHaveScreenshot(image(`toggle-after`));
});
