Skip to content

tests: add visual tests framework #12

tests: add visual tests framework

tests: add visual tests framework #12

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install ipyaladin and jupyterlab
run: |
python -m pip install .
python -m pip install jupyterlab
# Steps inspired from github.com/jupyterlab/extension-examples/blob/main/.github/workflows/main.yml
- name: Test jupyterlab browser
run: python -m jupyterlab.browser_check
- name: Install Playwright/Galata
working-directory: ./js/ui-tests
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: jlpm install --no-immutable
- name: Install browser
run: jlpm playwright install chromium
working-directory: ./js/ui-tests
- name: Run Playwright tests
run: jlpm playwright test