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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@shopby/playwright

v1.0.13

Published

ShopBy의 Playwright 기반 테스트 라이브러리

Readme

🎭 @shopby/playwright

Shopby에서 커스터마이징한 Playwright 테스트 자동화 도구입니다.

소개

@shopby/playwright는 Microsoft의 Playwright를 기반으로 Shopby 서비스에 최적화된 테스트 자동화 도구입니다. 웹 브라우저 자동화를 위한 강력한 기능을 제공하면서도 Shopby의 특화된 요구사항을 지원합니다.

설치 방법

# npm을 통한 설치
npm install @shopby/playwright

# yarn을 통한 설치
yarn add @shopby/playwright

주요 특징

  • Shopby UI에 최적화된 코드 생성기 및 인스펙터
  • 쇼핑몰 테스트를 위한 확장 기능
  • 크로스 브라우저 테스트 지원 (Chrome, Firefox, Safari)
  • 안정적인 테스트 실행을 위한 자동 대기 기능

사용 방법

코드 생성기 사용하기

npx shopby-playwright --name=sample codegen https://sample.shopby.co.kr

테스트 작성 예시

// tests/example.spec.js
const { test, expect } = require('@shopby/playwright');

test('sample', async ({ page }) => {
  // 쇼핑몰 메인 페이지 접속
  await page.goto('https://sample.shopby.co.kr');
  
  // 상품 검색
  await page.fill('input[name="keyword"]', '티셔츠');
  await page.press('input[name="keyword"]', 'Enter');

  // 검색 결과 확인
  await expect(page.locator('.search-result-item')).toHaveCount({ min: 1 });
  
  // 상품 상세 페이지 이동
  await page.click('.search-result-item:first-child');
  
  // 장바구니 담기
  await page.click('button:has-text("장바구니")');
  
  // 장바구니 페이지에서 상품 확인
  await page.click('.cart-icon');
  await expect(page.locator('.cart-item')).toBeVisible();
});

테스트 실행

npx shopby-playwright test