/**
 * Home Page E2E Tests
 */

describe('Home Page', () => {
  beforeEach(() => {
    cy.visit('/');
    cy.waitForPageLoad();
  });

  it('should load the home page', () => {
    cy.url().should('eq', `${Cypress.config('baseUrl')}/`);
  });

  it('should display the main navigation', () => {
    cy.get('nav').should('be.visible');
  });

  it('should have proper page title', () => {
    cy.title().should('not.be.empty');
  });

  it('should be responsive on mobile viewport', () => {
    cy.viewport('iphone-x');
    cy.get('nav').should('be.visible');
  });

  it('should be responsive on tablet viewport', () => {
    cy.viewport('ipad-2');
    cy.get('nav').should('be.visible');
  });
});
