Socket
Socket
Sign inDemoInstall

@inrupt/internal-playwright-helpers

Package Overview
Dependencies
Maintainers
5
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inrupt/internal-playwright-helpers

This package provides page models for known common elements of the sdk testable UIs


Version published
Weekly downloads
1.3K
decreased by-68.56%
Maintainers
5
Weekly downloads
 
Created
Source

@inrupt/internal-playwright-helpers

This package contains utilities to help setup automated testing environments.

Installation

  1. npm install --save-dev @inrupt/internal-playwright-helpers

Usage:

Add the function import as needed.

import { loginAndAllow } from "@inrupt/internal-playwright-helpers"

Then add in calls to the functions such as loginAndAllow to your test files.

For these helpers to work, your app should use predefined testids defined in @@inrupt/internal-playwright-testids. The following testids are expected in the exposed helpers:

  • The OpenID provider should be specified in a text input identified with TESTID_OPENID_PROVIDER_INPUT.
  • The login should be initiated by clicking a button identified with TESTID_LOGIN_BUTTON.
  • When the login process is complete, an element identified with TESTID_SESSION_STATUS should appear in the DOM.
  • When an error occurs, an element identified with TESTID_ERROR_MESSAGE should appear in the DOM.

FAQs

Package last updated on 23 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc