import { AdminDashboardPage, LoginPage } from '@admin-lib/index';
import { User_Type } from '@support-onboard/index';

describe('Admin: Default booking date filter is set when accessing Performance dashboard', () => {
  beforeEach(() => {
    LoginPage.createNewCompanyAndLoginWithUserByType({ users: [User_Type.ADMIN] });
  });

  it(
    'C51925: Admin sees YTD filter set by default when opening Admin dashboard',
    { tags: ['@tier1'] },
    () => {
      // this test works for English locale only
      AdminDashboardPage.visitAdminDashboardPage();
      AdminDashboardPage.checkBookingDateDefaultState();
    }
  );
});
