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 🙏

© 2024 – Pkg Stats / Ryan Hefner

qali

v1.3.22

Published

Create browser tests 10x faster (qawolf fork)

Downloads

75

Readme

Qali

🐺 What is Qali?

Qali is a Node.js library for creating browser tests. Run one command (npx qawolf init) to configure your project and set up CI.

  • Skip writing boilerplate: Your browser actions are converted to Playwright/Jest code.
  • Create stable tests: Your tests automatically wait for elements. Element selectors use test attributes when possible, and CSS/text otherwise.
  • Edit your tests: Edit your code as it is created and add steps to existing tests. Re-run your tests automatically with watch mode.
  • Debug with ease: Each test can report full interactive replayable session with logs.

🖥️ Install

Set up your project for browser tests:

cd /my/awesome/project
yarn create qali

Configure your test directory and CI provider:

? rootDir: Directory to create tests in (e2e)

This will install qali, jest and playwright as dev dependencies and create a [CI workflow file] to:

  • 🐎 Run tests in parallel
  • 📄 Create reports

🎨 Create a test

yarn qali create http://example.com testName

A new browser page will be opened where you can record the test flow. Take screenshots with ctrl/cmd + S Check the existence a string in page with ctrl/cmd+click End the test by hitting Enter in the terminal that started the test recording Hints:

  • try to do things slowly
  • click directly on text
  • type slowly

✅ Run your tests

On Chromium:

yarn qali test [name]

On Firefox:

yarn qali test --firefox [name]

On Webkit:

yarn qali test --webkit [name]

On all browsers:

yarn qali test --all-browsers [name]

To create a report for each test

yarn qali test --report

To add more logs to tests(eg server logs)

yarn qali test --report --more-logs logs.txt,server.logs

The logs must be in the form per line

    {
      "timestamp": 1608040047816,
      "method": "log",
      "data": [
        "%cbackend_dev      |%c INFO 2020-12-15 15:47:27,819 basehttp 36 139840204351232 \"GET /api/users/me/ HTTP/1.0\" 200 430\r",
        "color:rgb(0,153,102)",
        "color:rgb(-51,-153,-204)"
      ]
    }

To run the ci script:

npx qali-ci --url https://github.com/digigov/example --commit feature-qali-ci --qaliPath ui/e2e --report --prepareScript "cp backend-defaults.env backend-local.env" --port 80