Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: Revert to using Chrome for Testing with Puppeteer

LearningCircuit484e4a1e4642
diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml
index 412a72242f..00174d3619 100644
--- a/.github/workflows/ui-tests.yml
+++ b/.github/workflows/ui-tests.yml
@@ -54,8 +54,8 @@ jobs:
- name: Install browser dependencies
run: |
- # Install Chromium for Puppeteer
- npx puppeteer browsers install chromium
+ # Install Chrome for Puppeteer
+ npx puppeteer browsers install chrome
- name: Setup test directories
run: |
diff --git a/Dockerfile b/Dockerfile
index 78a04cde82..9b4da6b3de 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -65,35 +65,30 @@ RUN apt-get update && apt-get install -y \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
-# Install Playwright first to get Chromium
-RUN playwright install --with-deps chromium
-
-# Find Chromium executable and set it as environment variable
-RUN export CHROMIUM_PATH=$(find /root/.cache/ms-playwright -name chrome -type f | head -1) && \
- echo "Found Chromium at: $CHROMIUM_PATH" && \
- echo "ENV PUPPETEER_EXECUTABLE_PATH=$CHROMIUM_PATH" >> /tmp/env.txt
-
-# Set up Puppeteer to skip download and use Playwright's Chromium
-ENV PUPPETEER_SKIP_DOWNLOAD=true
-# This will be replaced with actual path during build
-RUN export CHROMIUM_PATH=$(find /root/.cache/ms-playwright -name chrome -type f | head -1) && \
- echo "export PUPPETEER_EXECUTABLE_PATH=$CHROMIUM_PATH" > /etc/profile.d/puppeteer.sh
+# Set up Puppeteer environment
+ENV PUPPETEER_CACHE_DIR=/app/puppeteer-cache
-# For non-interactive shells, set it directly
-ENV PUPPETEER_EXECUTABLE_PATH=/root/.cache/ms-playwright/chromium-1148/chrome-linux/chrome
+# Create puppeteer cache directory with proper permissions
+RUN mkdir -p /app/puppeteer-cache && chmod -R 777 /app/puppeteer-cache
# Copy test package files
COPY tests/api_tests_with_login/package.json /install/tests/api_tests_with_login/
COPY tests/ui_tests/package.json /install/tests/ui_tests/
-# Install npm packages (skip Puppeteer download)
+# Install npm packages (Puppeteer will download Chrome for Testing)
WORKDIR /install/tests/api_tests_with_login
RUN npm install
WORKDIR /install/tests/ui_tests
RUN npm install
+# Ensure Chrome binaries have correct permissions
+RUN chmod -R 755 /app/puppeteer-cache
+
WORKDIR /install
+# Install Playwright for other browser testing needs
+RUN playwright install --with-deps chromium
+
# Install the package using PDM
RUN pdm install --check --no-editable
# Configure path to default to the venv python.
diff --git a/tests/api_tests_with_login/puppeteer_config.js b/tests/api_tests_with_login/puppeteer_config.js
index dbfcb6e3b9..00e92a2f95 100644
--- a/tests/api_tests_with_login/puppeteer_config.js
+++ b/tests/api_tests_with_login/puppeteer_config.js
@@ -16,10 +16,7 @@ function getPuppeteerLaunchOptions(additionalOptions = {}) {
]
};
- // Use custom executable path if provided
- if (process.env.PUPPETEER_EXECUTABLE_PATH) {
- defaultOptions.executablePath = process.env.PUPPETEER_EXECUTABLE_PATH;
- }
+ // Remove --single-process as it can cause issues with some operations
return { ...defaultOptions, ...additionalOptions };
}
diff --git a/tests/ui_tests/puppeteer_config.js b/tests/ui_tests/puppeteer_config.js
index 516dd8d078..41ecb9dd1a 100644
--- a/tests/ui_tests/puppeteer_config.js
+++ b/tests/ui_tests/puppeteer_config.js
@@ -16,10 +16,7 @@ function getPuppeteerLaunchOptions(additionalOptions = {}) {
]
};
- // Use custom executable path if provided
- if (process.env.PUPPETEER_EXECUTABLE_PATH) {
- defaultOptions.executablePath = process.env.PUPPETEER_EXECUTABLE_PATH;
- }
+ // Remove --single-process as it can cause issues with some operations
return { ...defaultOptions, ...additionalOptions };
}