testcontainers-node icon indicating copy to clipboard operation
testcontainers-node copied to clipboard

Add playwright module

Open javierlopezdeancos opened this issue 1 year ago • 1 comments

Add playwright module

Description

Add Playwright module to copy your playwright test into a container build from an official playwright image run them and extract the reporter if you want it.

What this PR do

[!NOTE]
This is a version with some few features in reporter context thinking to be evolve in future steps .

[!IMPORTANT]
I found some problems to install the project dependencies with the node version v20.11.1, the current LTS, it this something exepcted even if we have an .nvmrc file indicating v20? 🤔 The problem was not only in my fork, continues reproducing in a fresh clone from the testcontainers org version, I resolve the problem downgrade my node version to v18.16.0

  • Run Playwright tests in a playwright container
    • [x] Run all Playwright tests in a playwright container
    • [ ] Run specific tests in a playwright container
  • Run Playwright tests in a playwright container and extract the reporter results
    • [x] Run Playwright tests in a playwright container and read the output line reporter.
    • [x] Run Playwright tests in a playwright container and read the output dot reporter.
    • [x] Run Playwright tests in a playwright container and extract the html reporter.
    • [ ] Run Playwright tests in a playwright container and open the html the json reporter.
    • [x] Run Playwright tests in a playwright container and extract the json reporter.
    • [x] Run Playwright tests in a playwright container and extract the junit reporter.
    • [x] Run Playwright tests in a playwright container and extract the blob reporter.
    • [ ] Run Playwright tests in a playwright container and extract a list of different kind of reporter.
  • Run Playwright tests against your app
    • [ ] Run Playwright tests in a playwright container against your app container
  • Run Playwright test in UI mode
    • [ ] Run Tests in UI Mode that user can follow up outside the container using a browser.
  • Run Playwright trace viewer GUI
    • [ ] Run Trace viewer GUI that user can follow up and control outside the container using a browser.
  • Debugging Playwright tests
    • [ ] Debugging Playwright tests with the Playwright inspector in a Playwright container

javierlopezdeancos avatar Mar 12 '24 16:03 javierlopezdeancos

Deploy Preview for testcontainers-node ready!

Name Link
Latest commit 8bb51c9bc125dea615df3ed3ae4869f372cf1d83
Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/660a9ad2f754f800086ab73e
Deploy Preview https://deploy-preview-726--testcontainers-node.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Mar 12 '24 16:03 netlify[bot]

I close this PR at the moment until I resolve the pipeline broke to podman

javierlopezdeancos avatar Apr 05 '24 20:04 javierlopezdeancos