import { expect } from '@/core/fixtures';
import { WidgetHelper } from '@/core/WidgetHelper';
import { Page } from 'playwright';

export async function navigateToReports(
  module: string,
  page: Page,
  w: WidgetHelper
) {
  await w.tile({ label: 'Administrace' }).click();
  await w.tile({ label: 'Reporty' }).click();
  expect(page.url()).toContain('reports');
  await w.collapsible({ label: module }).toggle();
}

export async function navigateToBia(w: WidgetHelper) {
  await w.tile({ label: 'Regulace' }).click();
  await w.tile({ label: 'BIA Tool' }).click();
  await w.tile({ label: 'BIA Procesní' }).click();
}
