Socket
Book a DemoInstallSign in
Socket

@testgorilla/tgo-ui

Package Overview
Dependencies
Maintainers
14
Versions
578
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testgorilla/tgo-ui

To see the updates of the library in the client app, use commands below from package.json

3.10.10
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
14
Weekly downloads
 
Created
Source

TestGorilla UI Library

Test app

To see the updates of the library in the client app, use commands below from package.json

  • build the updated version of canopy-ui with build:tgo-ui (ng build tgo-ui)
  • restart the client app with start:client (ng serve)

Foundations

  • Typography
  • Colors

Components

  • Alert Bars
    • Alert Banner
    • Banner Actions
    • Snackbar
  • Button
  • Elevation Shadow
  • Dialog
    • Confirm Dialog
    • Custom Dialog
  • File Upload
  • Forms
    • Checkbox
    • Datepicker
    • Dropdown
    • Input Field
    • Radio
  • Icon
    • Icon + Label
  • Logo
  • Overflow Menu
  • Progress Bar
  • Tag
  • Tooltip

Deprecated

  • Card
  • Create Account
  • Create Password
  • Forgot Password
  • Label
  • Login
  • NavBar
  • Navigation
  • Paginator
  • Table

Visual Regression Testing

The project uses Playwright for visual regression testing to ensure UI components maintain their visual appearance across changes. Visual tests automatically capture screenshots of all Storybook stories and compare them against stored snapshots.

Commands

# Run visual tests
npm run visual-test

# Update snapshots when visual changes are intentional
npm run visual-test:update-snapshots

How It Works

  • Build Phase: Storybook is built (npm run build-storybook) creating static files
  • Docker Execution: Tests run in a Linux container using mcr.microsoft.com/playwright:v1.46.1 for consistency
  • Server Setup: HTTP server serves Storybook static files on port 4200
  • Test Execution: Automatically discovers and tests all stories from Storybook's index.json
  • Screenshot Comparison: Compares current screenshots against stored snapshots

Docker Configuration

The system uses Docker Compose with two services:

  • visual-tests: Runs tests and compares with existing snapshots
  • update-snapshots: Updates snapshots when visual changes are expected

Both services:

  • Use official Microsoft Playwright image (mcr.microsoft.com/playwright:v1.46.1)
  • Mount project directory and install dependencies
  • Start HTTP server and wait for Storybook availability
  • Execute tests with Desktop Chrome viewport (1920x1200, 2x device scale)

Cross-Platform Consistency

Visual tests run in Docker to ensure:

  • Consistent font rendering across operating systems
  • Identical browser behavior regardless of host OS
  • Reproducible results in CI/CD environments
  • Linux-based snapshots that match production environments

Troubleshooting

  • Tests failing locally: Run npm run visual-test:update-snapshots if changes are intentional
  • Font rendering differences: Always use Docker commands for consistency
  • Timeout issues: Server waits up to 60 seconds for Storybook to be ready
  • Memory issues: Docker services configured with 4GB heap size

FAQs

Package last updated on 05 Sep 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.