diff --git a/earthly/flutter/installer/Earthfile b/earthly/flutter/installer/Earthfile index 5dbdbb727..5cfd1d3fd 100644 --- a/earthly/flutter/installer/Earthfile +++ b/earthly/flutter/installer/Earthfile @@ -7,7 +7,7 @@ VERSION 0.8 # Then replace that Release version number in the path below. # This ensures that the tools are properly cached, and will also be re-installed when the upstream artifact is updated. # If a branch is no longer used by CI, delete it. -ARG --global BASE_URL = "https://github.com/input-output-hk/catalyst-storage/raw/R0002/web-browsers" +ARG --global BASE_URL = "https://github.com/input-output-hk/catalyst-storage/raw/chrome-for-testing/web-browsers" #TODO(minikin): https://github.com/input-output-hk/catalyst-storage/issues/1 @@ -151,3 +151,21 @@ PATCH_CHROME: && echo '#!/bin/bash' > $CHROME_EXECUTABLE \ && echo '/usr/bin/'$BIN_TO_PATCH' --no-sandbox --disable-gpu --disable-dev-shm-usage --headless --disable-extensions --disable-popup-blocking --incognito "$@"' >> $CHROME_EXECUTABLE \ && chmod +x $CHROME_EXECUTABLE + +# Install Chrome for Testing v140 - specific version for E2E tests +INSTALL_CHROME_LINUX64_V140: + FUNCTION + + LET BLUE='\033[0;34m' + + RUN printf "${BLUE} Installing Chrome for Testing v140..." \ + && curl -sSL -o /opt/chrome.zip "${BASE_URL}/chrome/chrome-linux64_140.zip" \ + && unzip /opt/chrome.zip -d /opt/chrome \ + && chmod +x /opt/chrome/chrome-linux64/chrome \ + && rm /opt/chrome.zip + + # Set the Chrome path environment variable + ENV CHROME_PATH=/opt/chrome/chrome-linux64/chrome + + # Verify installation + RUN $CHROME_PATH --version || echo "Chrome for testing v140 installation complete at $CHROME_PATH" diff --git a/earthly/playwright/Earthfile b/earthly/playwright/Earthfile index 081406691..885b2eb8f 100644 --- a/earthly/playwright/Earthfile +++ b/earthly/playwright/Earthfile @@ -4,7 +4,7 @@ IMPORT ../flutter/installer AS flutter-installer SETUP: FUNCTION ARG workdir - FROM mcr.microsoft.com/playwright:v1.48.0-noble + FROM mcr.microsoft.com/playwright:v1.55.0-noble WORKDIR $workdir RUN apt-get update --fix-missing && apt-get install -y apt-utils curl unzip @@ -14,4 +14,12 @@ SETUP: RUN apt-get update && apt-get install -y \ libnss3 libatk-bridge2.0-0 libdrm-dev libxkbcommon-dev libgbm-dev libasound-dev libatspi2.0-0 libxshmfence-dev postgresql-client xvfb && \ apt-get clean && \ - rm -rf /var/lib/apt/lists/* \ No newline at end of file + rm -rf /var/lib/apt/lists/* + +# SETUP_WITH_CHROME_V140 - Setup with Chrome for Testing v140 +SETUP_WITH_CHROME_V140: + FUNCTION + ARG workdir + DO +SETUP --workdir=$workdir + # Install Chrome v140 from flutter-installer + DO flutter-installer+INSTALL_CHROME_LINUX64_V140 \ No newline at end of file