Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion earthly/flutter/installer/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
12 changes: 10 additions & 2 deletions earthly/playwright/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/*
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
Loading