Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

🎭 Currents - Playwright - GitLab CI/CD

This repo showcases Playwright integration with Currents. The example is based on https://github.com/MarcusFelling/demo.playwright, the basic test scenarios.

See the .gitlab-ci.yml file - it created a GitLab CI pipeline with 3 workers using 3 Playwright Shards.

Example command:

npx pwc --key $CURRENTS_RECORD_KEY --project-id bnsqNa --shard=$CI_NODE_INDEX/$CI_NODE_TOTAL

Setup

Additional resources:

Additional examples

GitLab CI Playwright Results

The results are being reported to Currents for more efficient troubleshooting, and monitoring test suite flakiness and performance.

Currents will collect the following information:

  • console output
  • screenshots
  • videos
  • trace files
  • timing
  • outcomes
  • flaky tests
  • error details
  • tags for more convenient management of the tests

GitLab Merge Request Notes

Take a look at the example merge request: https://gitlab.com/currents.dev/gitlab-playwright-currents/-/merge_requests/3

When GitLab integration is enabled, Currents will post a Merge Commit note with run results:

In addition, Currents will post an External Status check for every Playwright project configured. For example:

Example of Playwright run reported to GitLab CI/CD

Video