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

@fimple/playwright-testing-utils

v1.0.0

Published

Reusable Playwright testing components and utilities for Fimple applications

Readme

@fimple/playwright-testing-utils

Reusable Playwright testing components and utilities for Fimple applications.

Installation

npm install @fimple/playwright-testing-utils

Usage

Base Page Components

import { BasePage, BrowsePage, FormPage, WebSuite } from '@fimple/playwright-testing-utils';

// Extend base components for your specific pages
class CustomersPage extends BrowsePage {
  constructor(page: Page) {
    super(page, "u101814fe92", "Customers");
  }
  
  async fillCustomerIdFilter(customerId: string) {
    return this.getComponent('CustomerId').fill(customerId);
  }
}

// Use WebSuite for high-level navigation
const webSuite = new WebSuite(page);
const customersPage = await webSuite.openCustomersPage();

Authentication Fixtures

import { createAuthFixture } from '@fimple/playwright-testing-utils';

// Define your authentication function
async function authenticateUser(page: Page, userType: 'entry' | 'approver') {
  // Your authentication logic here
  await page.goto('/login');
  // ... login implementation
}

// Create the test fixture
export const test = createAuthFixture(authenticateUser);

// Use in tests
test('customer search', async ({ authenticatedPage }) => {
  const webSuite = new WebSuite(authenticatedPage);
  // ... test implementation
});

API Authentication

import { getApiAuthTokens, setApiAuthInContext } from '@fimple/playwright-testing-utils';

const config = {
  baseUrl: 'https://identity.dev.fimple.co.uk/auth/realms/tenant/protocol/openid-connect/token',
  username: '[email protected]',
  password: 'password123',
  clientId: 'fi-web-suite'
};

const tokens = await getApiAuthTokens(config);
await setApiAuthInContext(page, tokens);

API Reference

BasePage

Core page object with common UI interaction methods:

  • getComponent(componentName) - Get element by data-testid pattern
  • selectAutocompleteByText(componentName, optionText) - Select from dropdown by text
  • selectAutocompleteByIndex(componentName, index) - Select from dropdown by index
  • fillTranslations(fieldName, translations) - Fill multi-language fields
  • pressButtonTillFindElement(button, element) - Retry button clicks until element appears

BrowsePage

Extends BasePage for list/grid-based pages:

  • getGridRowActionByCellValue(gridName, rowAction, cellValue) - Get row action by cell value
  • getGridCellByRowNumberAndColumn(gridName, rowNumber, columnName) - Get specific grid cell
  • getGridFilterByColumnName(gridName, columnName) - Get grid filter input

FormPage

Extends BasePage for form-based pages:

  • saveAction - Save button locator
  • cancelAction - Cancel button locator
  • documentsAction - Documents button locator

WebSuite

High-level application navigation:

  • openCustomersPage() - Navigate to customers page
  • openCustomer360PageByCustomerId(customerId) - Open customer details
  • openInboxScreen() - Navigate to approval inbox
  • approveInboxItem(businessKey, uiKey) - Approve workflow item
  • rollback(businessKey) - Rollback a process

Configuration

WebSuite Configuration

const config = {
  customerMenuId: 'u9ab3193a96',
  customerSubMenuId: 'u101814fe92',
  inboxMenuId: 'uac2248dd39',
  inboxSubMenuId: 'u45518b4136',
  workflowMenuId: 'u441dbf7645'
};

const webSuite = new WebSuite(page, config);

Development

# Install dependencies
npm install

# Build the package
npm run build

# Run linting
npm run lint

# Format code
npm run format

License

MIT