diff --git a/frontend/Dockerfile b/frontend/Dockerfile index a5028df..50f901d 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine as client-builder +FROM node:22-alpine as client-builder WORKDIR /frontend diff --git a/frontend/src/examples/javascript/record-video.js b/frontend/src/examples/javascript/record-video.js index e43e123..dbf70bb 100644 --- a/frontend/src/examples/javascript/record-video.js +++ b/frontend/src/examples/javascript/record-video.js @@ -10,12 +10,16 @@ const { chromium } = require('playwright'); }); const page = await context.newPage(); - await page.goto('https://github.com'); - await page.locator('button').filter({ hasText: 'Search or jump to...' }).click(); - await page.getByRole('combobox', { name: 'Search' }).fill('Playwright'); - await page.getByRole('combobox', { name: 'Search' }).press('Enter'); - await page.getByRole('link', { name: 'microsoft/playwright', exact: true }).click(); - await page.waitForLoadState('networkidle'); + for (let i = 0; i < 3; i++) { + await page.goto('https://news.ycombinator.com/'); + await page.getByRole('link', { name: 'new', exact: true }).click(); + await page.locator('.pagetop > a').first().click(); + await page.getByRole('link', { name: 'comments', exact: true }).click(); + await page.getByRole('link', { name: 'ask' }).click(); + await page.getByRole('link', { name: 'show' }).click(); + await page.getByRole('link', { name: 'jobs' }).click(); + await page.getByRole('link', { name: 'login' }).click(); + } await browser.close(); })(); diff --git a/worker-csharp/Dockerfile b/worker-csharp/Dockerfile index 65d074c..3d4c256 100644 --- a/worker-csharp/Dockerfile +++ b/worker-csharp/Dockerfile @@ -1,4 +1,4 @@ -ARG PLAYWRIGHT_VERSION=1.46.0 +ARG PLAYWRIGHT_VERSION=1.47.0 FROM golang:1.20-buster as builder WORKDIR /root COPY go.mod /root/ @@ -9,7 +9,7 @@ COPY worker-csharp/main.go /root/ COPY internal/ /root/internal/ RUN CGO_ENABLED=0 GOOS=linux go build -o /app -FROM mcr.microsoft.com/playwright/dotnet:v${PLAYWRIGHT_VERSION}-jammy +FROM mcr.microsoft.com/playwright/dotnet:v${PLAYWRIGHT_VERSION}-noble ARG PLAYWRIGHT_VERSION ENV PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION @@ -20,10 +20,6 @@ RUN apt-get remove -y git ssh xvfb curl && \ WORKDIR /home/pwuser/ -# Nuke /tmp/.dotnet/ folder to avoid permission issues root != pwuser -# Workaround for https://github.com/dotnet/runtime/issues/80619 -RUN rm -rf /tmp/.dotnet/ - USER pwuser RUN mkdir /home/pwuser/project/ && \ diff --git a/worker-java/Dockerfile b/worker-java/Dockerfile index be47f83..7ab3813 100644 --- a/worker-java/Dockerfile +++ b/worker-java/Dockerfile @@ -1,4 +1,4 @@ -ARG PLAYWRIGHT_VERSION=1.46.0 +ARG PLAYWRIGHT_VERSION=1.47.0 FROM golang:1.20-buster as builder WORKDIR /root COPY go.mod /root/ @@ -9,7 +9,7 @@ COPY worker-java/main.go /root/ COPY internal/ /root/internal/ RUN CGO_ENABLED=0 GOOS=linux go build -o /app -FROM mcr.microsoft.com/playwright/java:v$PLAYWRIGHT_VERSION-jammy +FROM mcr.microsoft.com/playwright/java:v$PLAYWRIGHT_VERSION-noble RUN apt-get remove -y git ssh xvfb curl && \ apt-get autoremove -y diff --git a/worker-javascript/Dockerfile b/worker-javascript/Dockerfile index c2d6e8d..5e23628 100644 --- a/worker-javascript/Dockerfile +++ b/worker-javascript/Dockerfile @@ -9,7 +9,7 @@ COPY worker-javascript/main.go /root/ COPY internal/ /root/internal/ RUN CGO_ENABLED=0 GOOS=linux go build -o /app -FROM mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}-jammy +FROM mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}-noble ARG PLAYWRIGHT_VERSION ENV PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION diff --git a/worker-python/Dockerfile b/worker-python/Dockerfile index e1ff2a6..2a121bf 100644 --- a/worker-python/Dockerfile +++ b/worker-python/Dockerfile @@ -1,4 +1,4 @@ -ARG PLAYWRIGHT_VERSION=1.46.0 +ARG PLAYWRIGHT_VERSION=1.47.0 FROM golang:1.20-buster as builder WORKDIR /root COPY go.mod /root/ @@ -9,7 +9,7 @@ COPY worker-python/main.go /root/ COPY internal/ /root/internal/ RUN CGO_ENABLED=0 GOOS=linux go build -o /app -FROM mcr.microsoft.com/playwright/python:v${PLAYWRIGHT_VERSION}-jammy +FROM mcr.microsoft.com/playwright/python:v${PLAYWRIGHT_VERSION}-noble ARG PLAYWRIGHT_VERSION ENV PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION