test(e2e): phase-2 add Office and zip smoke automation (#714)

* test(e2e): phase-2 add office and zip smoke coverage

* test(e2e): address copilot review for fixture stability and CI python setup

* test(e2e): fix preflight fixture scope and path handling

* test(e2e): harden fixture preflight and remove duplicate generation

* test(e2e): remove redundant zip install and cleanup temp zip dir

* test(e2e): ensure zip dependency and unify python command in docs

* docs(e2e): align README with npm gen scripts and python3 usage
This commit is contained in:
kl
2026-03-04 14:34:32 +08:00
committed by GitHub
parent a0d78c57e3
commit bb457924cd
9 changed files with 136 additions and 12 deletions

View File

@@ -31,10 +31,20 @@ jobs:
cache: 'npm'
cache-dependency-path: tests/e2e/package-lock.json
- name: Install LibreOffice
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install LibreOffice + zip
run: |
sudo apt-get update
sudo apt-get install -y libreoffice
sudo apt-get install -y libreoffice zip
- name: Setup Python deps for office fixtures
run: |
python -m pip install --upgrade pip
pip install -r tests/e2e/requirements.txt
- name: Build kkFileView
run: mvn -q -pl server -DskipTests package
@@ -45,9 +55,6 @@ jobs:
npm install
npx playwright install --with-deps chromium
- name: Generate fixtures
run: node tests/e2e/scripts/generate-fixtures.mjs
- name: Start fixture server
run: |
cd tests/e2e/fixtures