import { AdminDashboardPage } from '@admin-lib/index';
import { stagingUsers } from '@fixtures/staging-users';
const authUserPassword = Cypress.env('newUser').NEW_USER_PASSWORD;
const { adminUser } = stagingUsers.admin;

describe('Admin: Main admin pages should be loaded', () => {
  beforeEach(() => {
    cy.loginWithAuthToken({
      email: adminUser.email,
      password: authUserPassword,
      isSA: true
    });
  });

  it('C51934 C51935: Verify Spend Overview UI elements', { tags: ['@tier1'] }, () => {
    AdminDashboardPage.visitAdminDashboardPage();
    AdminDashboardPage.checkSpendOverviewPresence();
    AdminDashboardPage.checkSpendOverviewValuesPresence();
    AdminDashboardPage.clickAnalyzeButtonOnSpendOverviewCard();
  });
});
