Skip to content

SITES-26731 Add e2e tests #4

SITES-26731 Add e2e tests

SITES-26731 Add e2e tests #4

Workflow file for this run

name: E2E Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
e2e-tests:
name: Run E2E Tests with TestCafe
runs-on: ubuntu-latest
strategy:
matrix:
host-app-version: ["0.8.0", "0.9.0", "0.10.0", "0.10.5"]
guest-app-version: ["0.8.0", "0.9.0", "0.10.0", "0.10.5"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # Adjust this as per project requirements
- name: Install Dependencies for Host App
working-directory: e2e/host-app
run: |
npm install uix-host-react@${{ matrix.host-app-version }}
npm install
- name: Install Dependencies for Guest App
working-directory: e2e/guest-app
run: |
npm install uix-guest@${{ matrix.guest-app-version }}
npm install
- name: Start Host App
working-directory: e2e/host-app
run: |
npm start &
- name: Start Guest App
working-directory: e2e/guest-app
run: |
npm start &
- name: Wait for Applications to be Ready
run: |
echo "Waiting for services to start..."
sleep 10 # Adjust the time based on how long the apps take to start
- name: Run E2E Tests with TestCafe
working-directory: e2e/e2e
run: |
npm install
npm test