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

@sergey_butkevich/portal-app-acceptance-tests

v0.1.0

Published

Playwright automated E2E tests for Portal App student project validation

Readme

Portal App Acceptance Tests

A set of automated E2E tests using Playwright for validating student project Portal App implementation.

📋 Description

This package contains acceptance tests that students can use to verify the correctness of their Portal App project implementation. The tests cover core functional requirements of the project.

🧪 Test Coverage

  • Registration (registration.spec.ts) - user registration flow
  • Authentication (login.spec.ts) - login functionality
  • Profile (profile.spec.ts) - user profile management
  • Contacts (contacts.spec.ts) - contact management
  • Permissions (permissions.spec.ts) - access rights verification
  • Impersonation (impersonation.spec.ts) - impersonating other users
  • Admin Panel (admin-access.spec.ts) - administrative functions access
  • Super Admin (super-admin.spec.ts) - super admin features
  • Password Recovery (forgot-password.spec.ts) - password reset process

📦 Installation

npm install --save-dev @sergey_butkevich/portal-app-acceptance-tests

или

yarn add -D @sergey_butkevich/portal-app-acceptance-tests

⚙️ Prerequisites

  • Node.js >= 16
  • Playwright >= 1.40.0

🚀 Usage

1. Install Playwright (if not already installed)

npm install --save-dev @playwright/test
npx playwright install

2. Create configuration file

Create a playwright.config.ts file in the root of your project:

import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
  testDir: './node_modules/@sergey_butkevich/portal-app-acceptance-tests/tests',
  fullyParallel: false,
  forbidOnly: !!process.env.CI,
  retries: process.env.CI ? 2 : 0,
  workers: 1,
  reporter: 'html',
  
  use: {
    baseURL: 'http://localhost:3000', // Your application URL
    trace: 'on-first-retry',
    screenshot: 'only-on-failure',
  },

  projects: [
    {
      name: 'chromium',
      use: { ...devices['Desktop Chrome'] },
    },
  ],

  webServer: {
    command: 'npm run dev', // command to start your application
    url: 'http://localhost:3000',
    reuseExistingServer: !process.env.CI,
    timeout: 120 * 1000,
  },
});

3. Run tests

All tests:

npx playwright test

Specific test suite:

npx playwright test node_modules/@sergey_butkevich/portal-app-acceptance-tests/tests/registration.spec.ts

With UI mode:

npx playwright test --ui

In headed mode (with visible browser):

npx playwright test --headed

4. View report

npx playwright show-report

📝 Environment Variables

Tests can use the following environment variables:

BASE_URL=http://localhost:3000  # Your application URL

Create a .env file in the project root for local development.

🔧 Configure baseURL

Make sure the correct baseURL is specified in your Playwright configuration:

use: {
  baseURL: 'http://localhost:3000',
}

📖 Test Documentation

Detailed description of each test suite is available in TEST-SUITES-README.md.

🤝 Project Requirements

Your application must:

  1. Be accessible at the specified baseURL
  2. Have all required pages and forms
  3. Handle requests correctly
  4. Have proper element selectors (data-testid, role, text)

🐛 Debugging

If tests fail:

  1. Verify the application is running and accessible
  2. Ensure the correct baseURL is being used
  3. Run tests in debug mode:
    npx playwright test --debug
  4. Check screenshots and traces in the test-results/ folder

📄 License

ISC

👨‍💻 Author

Serge Butkevich

🔗 Useful Links