Skip to content

Commit

Permalink
Add playwright nodejs module (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
javierlopezdeancos authored Aug 5, 2024
1 parent 99eef53 commit dfed84a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
25 changes: 25 additions & 0 deletions modules/playwright/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Playwright
categories:
- web
docs:
- id: nodejs
url: https://github.com/javierlopezdeancos/testcontainers-node-playwright
maintainer: community
example: |
```javascript
import path from "path";
import { PlaywrightContainer } from "testcontainers-node-playwright";
const PLAYWRIGHT_PROJECT_TESTS_TO_RUN_INTO_THE_CONTAINER = path.resolve(__dirname, "..", "example-project");
const startedPlaywrightContainer = await new PlaywrightContainer(
"mcr.microsoft.com/playwright:v1.44.0-jammy",
PLAYWRIGHT_PROJECT_TESTS_TO_RUN_INTO_THE_CONTAINER,
).start();
const { output, exitCode } = await startedPlaywrightContainer.exec(["npx", "playwright", "test"]);
```
description: |
Playwright enables reliable end-to-end testing for modern web apps.
---
9 changes: 9 additions & 0 deletions modules/playwright/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dfed84a

Please sign in to comment.