describe("Admin Panel", () => {
  beforeEach(() => {
    cy.devLogin("admin@oliver.com");
  });

  it("loads admin dashboard", () => {
    cy.visit("/admin");
    cy.contains("Admin").should("be.visible");
  });

  it("navigates to users page", () => {
    cy.visit("/admin/users");
    cy.contains("Users").should("be.visible");
  });

  it("navigates to clients page", () => {
    cy.visit("/admin/clients");
    cy.contains("Clients").should("be.visible");
  });

  it("navigates to analytics page", () => {
    cy.visit("/admin/analytics");
    cy.contains("Analytics").should("be.visible");
  });

  it("navigates to audit page", () => {
    cy.visit("/admin/audit");
    cy.contains("Audit").should("be.visible");
  });
});
