New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/atlas-integration

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/atlas-integration

This folder provides the basis for all integration testing against Atlas. Atlas is primarily a CSS framework, and we are not seeking to test CSS itself. We use two methods of integration testing here.

  • 1.2.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

Atlas Integration Testing

This folder provides the basis for all integration testing against Atlas. Atlas is primarily a CSS framework, and we are not seeking to test CSS itself. We use two methods of integration testing here.

  1. Visual regression testing (visual diff) against our site's component pages - a work in progress. See config and entry point.
  2. Assertion style testing of interactions (integration-tests) for elements and behaviors in the atlas-js package. See config and example.

Installation

You must install Playwright and its dependencies on your machine before using any commands.

npx playwright install

Using Playwright

Both of the above use @playwright/test. Their documentaton should be the primary source of information on how to write tests here. Because of our monorepo setup, we've taken the approach of referencing playwright commands via npm. The primary commands available at the root of the project are:

CommandReferentDescription
npm run integration-testsplaywright test --config=integration-tests.config.tsRuns all tests in the /integration-tests folder.
npm run integration-tests:debugplaywright test --debug --config=integration-tests.config.tsThe same as above but in Playwright debug mode.
npm run codegenplaywright codegen localhost:1111Runs Playwright codegen for integration-tests. Must have local server running on port 1111 before starting.
screenshots:lightplaywright test --config=visual-diff.config.tsTake screenshots of images on light theme. Primarily for use on Github Actions.
screenshots:allcross-env FULL_DIFF=true playwright test --config=visual-diff.config.tsTake screenshots of images on light, dark, and high-contrast themes. Primarily for use on Github Actions.

FAQs

Package last updated on 08 Aug 2022

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