import { AdminDashboardPage } from '@admin-lib/index';
import { stagingUsers } from '@fixtures/staging-users';

const { admin } = stagingUsers.admin;
const adminCredentials = Cypress.env('admin').admin.ADMIN_PASSWORD;

describe('Admin: Adoption card is loaded on the Admin dashboard', () => {
  beforeEach(() => {
    cy.loginWithAuthToken({ email: admin.email, password: adminCredentials, isSA: true });
  });

  it('C51941: Admin sees the Adoption section', { tags: ['@tier1'] }, () => {
    AdminDashboardPage.visitAdminDashboardPage();
    AdminDashboardPage.checkAdoptionCardPresence();
    AdminDashboardPage.checkAdoptionCardItemsPresence();
    AdminDashboardPage.checkSignUpsReportDownload();
    AdminDashboardPage.checkAppInstallationsReportDownload();
  });
});
