/**
 * Cypress Custom Commands
 */

// Wait for page to fully load
Cypress.Commands.add('waitForPageLoad', () => {
  cy.document().its('readyState').should('eq', 'complete');
});

// Login command (placeholder for auth implementation)
Cypress.Commands.add('login', (email: string, password: string) => {
  // This will be implemented when auth is added
  cy.log(`Login with ${email}`);
  cy.session([email, password], () => {
    // Placeholder for auth session
    cy.visit('/');
  });
});

// Navigate to a plant page
Cypress.Commands.add('visitPlant', (plantId: string) => {
  cy.visit(`/plants/${plantId}`);
  cy.waitForPageLoad();
});

// Export empty object for module
export {};
