Skip to content

Commit 0fcb034

Browse files
fix: fix example how import module
1 parent 07df245 commit 0fcb034

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Playwright documentation in the [Playwright official site](https://playwright.de
3030
- [Execute tests in a playwright container with default configuration that should fail and extract the trace viewer zip file](#execute-tests-in-a-playwright-container-with-default-configuration-that-should-fail-and-extract-the-trace-viewer-zip-file)
3131
- [Run playwright tests pointed to your app](#run-playwright-tests-pointed-to-your-app)
3232
- [Run playwright tests in a playwright container pointed to your app container](#run-playwright-tests-in-a-playwright-container-pointer-to-your-your-app-container)
33-
- [Pointed to our hello world app example](#pointed-to-our-hello-world-app-example)
33+
- [Pointed to our hello world app example](#pointed-to-our-hello-world-app-example)
3434

3535
## Features Implemented
3636

@@ -90,7 +90,7 @@ that you can review to choose a tag.
9090

9191
```typescript
9292
import path from "path";
93-
import { PlaywrightContainer } from "@testcontainers/playwright";
93+
import { PlaywrightContainer } from "testcontainers-node-playwright";
9494

9595
const PLAYWRIGHT_IMAGE = "mcr.microsoft.com/playwright:v1.44.0-jammy";
9696
const PLAYWRIGHT_PROJECT_TESTS_TO_RUN_INTO_THE_CONTAINER = path.resolve(__dirname, "..", "example-project");
@@ -121,7 +121,7 @@ class passing the type of reporter to extract and where do you want to extract i
121121

122122
```typescript
123123
import path from "path";
124-
import { PlaywrightContainer } from "@testcontainers/playwright";
124+
import { PlaywrightContainer } from "testcontainers-node-playwright";
125125

126126
const PLAYWRIGHT_IMAGE = "mcr.microsoft.com/playwright:v1.44.0-jammy";
127127
const PLAYWRIGHT_PROJECT_TESTS_TO_RUN_INTO_THE_CONTAINER = path.resolve(__dirname, "..", "example-project");
@@ -143,7 +143,7 @@ const { output, exitCode } = await startedPlaywrightContainer.exec([
143143

144144
```typescript
145145
import path from "path";
146-
import { PlaywrightContainer } from "@testcontainers/playwright";
146+
import { PlaywrightContainer } from "testcontainers-node-playwright";
147147

148148
const PLAYWRIGHT_IMAGE = "mcr.microsoft.com/playwright:v1.44.0-jammy";
149149
const PLAYWRIGHT_PROJECT_TESTS_TO_RUN_INTO_THE_CONTAINER = path.resolve(__dirname, "..", "example-project");
@@ -165,7 +165,7 @@ const { output, exitCode } = await startedPlaywrightContainer.exec([
165165

166166
```typescript
167167
import path from "path";
168-
import { PlaywrightContainer } from "@testcontainers/playwright";
168+
import { PlaywrightContainer } from "testcontainers-node-playwright";
169169

170170
const PLAYWRIGHT_IMAGE = "mcr.microsoft.com/playwright:v1.44.0-jammy";
171171
const PLAYWRIGHT_PROJECT_TESTS_TO_RUN_INTO_THE_CONTAINER = path.resolve(__dirname, "..", "example-project");
@@ -187,7 +187,7 @@ await startedPlaywrightContainer.saveReporter("html", externalDestinationReporte
187187

188188
```typescript
189189
import path from "path";
190-
import { PlaywrightContainer } from "@testcontainers/playwright";
190+
import { PlaywrightContainer } from "testcontainers-node-playwright";
191191

192192
const PLAYWRIGHT_IMAGE = "mcr.microsoft.com/playwright:v1.44.0-jammy";
193193
const PLAYWRIGHT_PROJECT_TESTS_TO_RUN_INTO_THE_CONTAINER = path.resolve(__dirname, "..", "example-project");
@@ -218,7 +218,7 @@ Those changes are reflected in the [PR #7](https://github.com/javierlopezdeancos
218218
219219
```typescript
220220
import path from "path";
221-
import { PlaywrightContainer } from "@testcontainers/playwright";
221+
import { PlaywrightContainer } from "testcontainers-node-playwright";
222222

223223
const PLAYWRIGHT_IMAGE = "mcr.microsoft.com/playwright:v1.44.0-jammy";
224224
const PLAYWRIGHT_PROJECT_TESTS_TO_RUN_INTO_THE_CONTAINER = path.resolve(__dirname, "..", "example-project");
@@ -242,7 +242,7 @@ await startedPlaywrightContainer.saveReporter("blob", externalDestinationReporte
242242

243243
```typescript
244244
import path from "path";
245-
import { PlaywrightContainer } from "@testcontainers/playwright";
245+
import { PlaywrightContainer } from "testcontainers-node-playwright";
246246

247247
const PLAYWRIGHT_IMAGE = "mcr.microsoft.com/playwright:v1.44.0-jammy";
248248
const PLAYWRIGHT_PROJECT_TESTS_TO_RUN_INTO_THE_CONTAINER = path.resolve(__dirname, "..", "example-project");
@@ -267,7 +267,7 @@ Review the [Playwright trace viewer documentation](https://playwright.dev/docs/t
267267
#### Execute tests in a playwright container with default configuration that should fail and extract the trace viewer zip file
268268

269269
```typescript
270-
import { PlaywrightContainer, BROWSER } from "./playwright-container";
270+
import { PlaywrightContainer } from "testcontainers-node-playwright";
271271

272272
const startedPlaywrightContainer = await new PlaywrightContainer(
273273
PLAYWRIGHT_IMAGE,
@@ -316,6 +316,9 @@ it here as container application to check if the playwright container can pass i
316316
You can identify how we create and start this container in `playwright-container.test.ts` file:
317317

318318
```typescript
319+
import { Network, GenericContainer } from "testcontainers";
320+
import { PlaywrightContainer } from "testcontainers-node-playwright";
321+
319322
const PLAYWRIGHT_IMAGE = "mcr.microsoft.com/playwright:v1.43.0-jammy";
320323
const HELLO_WORLD_APP_IMAGE = "javierland/example-hello-world-app:latest";
321324

0 commit comments

Comments
 (0)