File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ VERSION 0.8
77# Then replace that Release version number in the path below.
88# This ensures that the tools are properly cached, and will also be re-installed when the upstream artifact is updated.
99# If a branch is no longer used by CI, delete it.
10- ARG --global BASE_URL = "https://github.com/input-output-hk/catalyst-storage/raw/R0002 /web-browsers"
10+ ARG --global BASE_URL = "https://github.com/input-output-hk/catalyst-storage/raw/chrome-for-testing /web-browsers"
1111
1212# TODO(minikin): https://github.com/input-output-hk/catalyst-storage/issues/1
1313
@@ -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,7 +4,7 @@ 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
@@ -14,4 +14,12 @@ SETUP:
1414 RUN apt-get update && apt-get install -y \
1515 libnss3 libatk-bridge2.0-0 libdrm-dev libxkbcommon-dev libgbm-dev libasound-dev libatspi2.0-0 libxshmfence-dev postgresql-client xvfb && \
1616 apt-get clean && \
17- rm -rf /var/lib/apt/lists/*
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+ DO +SETUP --workdir = $workdir
24+ # Install Chrome v140 from flutter-installer
25+ DO flutter-installer+INSTALL_CHROME_LINUX64_V140
You can’t perform that action at this time.
0 commit comments