Skip to content

Commit

Permalink
chore: bump Playwright to v1.42 (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Mar 31, 2024
1 parent 8678e85 commit b0e26a7
Show file tree
Hide file tree
Showing 8 changed files with 2,696 additions and 469 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Try Playwright

![CI](https://github.com/mxschmitt/try-playwright/workflows/CI/badge.svg)
![Playwright version](https://img.shields.io/badge/Playwright-1.41.0-blue.svg)
![Playwright version](https://img.shields.io/badge/Playwright-1.42.1-blue.svg)

> Interactive playground for [Playwright](https://github.com/microsoft/playwright) to run examples directly from your browser
Expand Down
7 changes: 3 additions & 4 deletions e2e/tests/visual.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ test.describe('Examples', () => {
await tpPage.executeExample(1)
await expect(tpPage.images).toHaveCount(2)
await expect(tpPage.videos).toHaveCount(0)
await expect(tpPage.fileNames).toHaveText([
"example-chromium.png",
"example-webkit.png",
])
await expect(tpPage.fileNames).toContainText(["example-chromium.png"])
await expect(tpPage.fileNames).toContainText(["example-webkit.png"])
await expect(tpPage.fileNames).toHaveCount(2)
})
test("2: should be able to set the geolocation", async ({ tpPage }) => {
await tpPage.executeExample(2)
Expand Down
3,146 changes: 2,687 additions & 459 deletions frontend/src/components/Editor/types.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion worker-csharp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PLAYWRIGHT_VERSION=1.41.1
ARG PLAYWRIGHT_VERSION=1.42.0
FROM golang:1.20-buster as builder
WORKDIR /root
COPY go.mod /root/
Expand Down
2 changes: 1 addition & 1 deletion worker-java/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PLAYWRIGHT_VERSION=1.41.0
ARG PLAYWRIGHT_VERSION=1.42.0
FROM golang:1.20-buster as builder
WORKDIR /root
COPY go.mod /root/
Expand Down
2 changes: 1 addition & 1 deletion worker-java/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func handler(w *worker.Worker, code string) error {
if err := os.WriteFile(sourceFile, []byte(code), 0644); err != nil {
return fmt.Errorf("could not write Java source files: %v", err)
}
if err := w.ExecCommand("javac", "--class-path", classPath, sourceFile); err != nil {
if err := w.ExecCommand("javac", "-proc:none", "--class-path", classPath, sourceFile); err != nil {
return fmt.Errorf("could not compile: %w", err)
}
return w.ExecCommand("java", "--class-path", classPath, filepath.Join("org", "example", className))
Expand Down
2 changes: 1 addition & 1 deletion worker-javascript/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PLAYWRIGHT_VERSION=1.41.0
ARG PLAYWRIGHT_VERSION=1.42.1
FROM golang:1.20-buster as builder
WORKDIR /root
COPY go.mod /root/
Expand Down
2 changes: 1 addition & 1 deletion worker-python/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PLAYWRIGHT_VERSION=1.41.0
ARG PLAYWRIGHT_VERSION=1.42.0
FROM golang:1.20-buster as builder
WORKDIR /root
COPY go.mod /root/
Expand Down

0 comments on commit b0e26a7

Please sign in to comment.