npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

shopware-e2e-testkit

v1.0.0

Published

Shopware 6 E2E Smoke Testkit

Readme

Shopware 6 E2E Smoke Testkit

A ready-to-use E2E/smoke testkit for Shopware 6 Storefront, based on Playwright.

Features

  • ✅ Quick setup with init command.
  • ✅ Pre-configured smoke tests for core storefront functionality.
  • ✅ Page Object Model (POM) based architecture for easy maintenance.
  • ✅ Configurable via environment variables.

Installation

npm install --save-dev shopware-e2e-testkit

Getting Started

1. Initialize the testkit

Run the following command in your project root:

npx shopware-testkit init

This will create:

  • playwright.config.ts: Playwright configuration.
  • .env: Environment variables for your shop URL.
  • .env.example: Template for environment variables.

2. Configure your Shop URL

Open the .env file and set your SALESCHANNEL_URL:

SALESCHANNEL_URL=https://your-shopware-6-store.com

3. Run the tests

npx shopware-testkit run

You can also specify the URL directly via CLI:

npx shopware-testkit run --url https://another-store.com

Debugging

You can debug the tests using standard Playwright features:

  • UI Mode: Opens an interactive UI to step through tests.

    npx shopware-testkit run --ui
  • Debug Mode: Opens the Playwright Inspector.

    npx shopware-testkit run --debug

Continuous Integration (Bitbucket Pipelines)

To run the smoke tests automatically in your Bitbucket Pipelines, you can add a step to your bitbucket-pipelines.yml.

Example Configuration

Using the official Playwright Docker image ensures all browser dependencies are met. You can add this as a separate step in your pipeline:

pipelines:
  default:
    - step:
        name: Shopware E2E Smoke Tests
        image: mcr.microsoft.com/playwright:v1.49.1-jammy
        caches:
          - node
        script:
          - npm ci
          # The testkit picks up SALESCHANNEL_URL and SEARCH_TERM from the environment
          - npx shopware-testkit run
        artifacts:
          - playwright-report/**

  # Manual trigger for specific environment
  custom:
    smoke-tests-staging:
      - step:
          name: Shopware E2E Smoke Tests (Staging)
          image: mcr.microsoft.com/playwright:v1.49.1-jammy
          script:
            - npm ci
            - SALESCHANNEL_URL="https://staging.yourshop.com" npx shopware-testkit run

Environment Variables

Make sure to define the following Repository Variables in Bitbucket (Repository settings > Pipelines > Repository variables):

  • SALESCHANNEL_URL: The URL of your Shopware storefront (e.g., https://staging.yourshop.com).
  • SEARCH_TERM: (Optional) The product name to search for.

Included Tests

The smoke testkit covers:

  • Homepage: Verifies that the home page loads and essential elements (logo, navigation, footer) are visible.
  • Search: Verifies that the search functionality returns results.
  • Product Detail Page (PDP): Verifies that product details and price are displayed.
  • Cart: Verifies that products can be added to the cart.
  • Checkout: Verifies the guest checkout flow until the confirmation page (without placing an actual order).

License

MIT