File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -151,3 +151,21 @@ PATCH_CHROME:
151151 && echo '#!/bin/bash' > $CHROME_EXECUTABLE \
152152 && echo '/usr/bin/' $BIN_TO_PATCH ' --no-sandbox --disable-gpu --disable-dev-shm-usage --headless --disable-extensions --disable-popup-blocking --incognito "$@"' >> $CHROME_EXECUTABLE \
153153 && chmod +x $CHROME_EXECUTABLE
154+
155+ # Install Chrome for Testing v140 - specific version for E2E tests
156+ INSTALL_CHROME_LINUX64_V140 :
157+ FUNCTION
158+
159+ LET BLUE= '\0 33[0;34m'
160+
161+ RUN printf "${BLUE} Installing Chrome for Testing v140..." \
162+ && curl -sSL -o /opt/chrome.zip "${BASE_URL}/chrome/chrome-linux64_140.zip" \
163+ && unzip /opt/chrome.zip -d /opt/chrome \
164+ && chmod +x /opt/chrome/chrome-linux64/chrome \
165+ && rm /opt/chrome.zip
166+
167+ # Set the Chrome path environment variable
168+ ENV CHROME_PATH= /opt/chrome/chrome-linux64/chrome
169+
170+ # Verify installation
171+ RUN $CHROME_PATH --version || echo "Chrome for testing v140 installation complete at $CHROME_PATH"
Original file line number Diff line number Diff line change @@ -4,13 +4,30 @@ IMPORT ../flutter/installer AS flutter-installer
44SETUP :
55 FUNCTION
66 ARG workdir
7- FROM mcr.microsoft.com/playwright:v1.48 .0-noble
7+ FROM mcr.microsoft.com/playwright:v1.55 .0-noble
88 WORKDIR $workdir
99
1010 RUN apt-get update --fix-missing && apt-get install -y apt-utils curl unzip
1111
1212 DO flutter-installer+INSTALL_CHROME_LINUX64
1313
14+ RUN apt-get update && apt-get install -y \
15+ libnss3 libatk-bridge2.0-0 libdrm-dev libxkbcommon-dev libgbm-dev libasound-dev libatspi2.0-0 libxshmfence-dev postgresql-client xvfb && \
16+ apt-get clean && \
17+ rm -rf /var/lib/apt/lists/*
18+
19+ # SETUP_WITH_CHROME_V140 - Setup with Chrome for Testing v140
20+ SETUP_WITH_CHROME_V140 :
21+ FUNCTION
22+ ARG workdir
23+ FROM mcr.microsoft.com/playwright:v1.55.0-noble
24+ WORKDIR $workdir
25+
26+ RUN apt-get update --fix-missing && apt-get install -y apt-utils curl unzip
27+
28+ # Use Chrome v140 from flutter-installer
29+ DO flutter-installer+INSTALL_CHROME_LINUX64_V140
30+
1431 RUN apt-get update && apt-get install -y \
1532 libnss3 libatk-bridge2.0-0 libdrm-dev libxkbcommon-dev libgbm-dev libasound-dev libatspi2.0-0 libxshmfence-dev postgresql-client xvfb && \
1633 apt-get clean && \
You can’t perform that action at this time.
0 commit comments