Skip to content

E2E: Implement Smoke Test for Homepage #118

@EJM143

Description

@EJM143

Description

As a developer, I want to ensure that the application builds and deploys successfully so that users can access the main landing page without crashing.

We need to add a simple Playwright test that visits the homepage and verifies that the main critical elements render.

Tasks

  • Install Playwright (if not already installed).
  • Create a new test file tests/smoke.spec.js (or similar).
  • Write a test that visits the root URL /.
  • Assert that the main "h1" title is visible.
  • Assert that the page title (browser tab) is correct.

Acceptance Criteria

  • Test passes locally using npx playwright test.
  • Test verifies the presence of the main specific header text (e.g., “Welcome to My Portfolio”).
  • Test fails if the application returns a 404 or blank page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions