* feat(tracker): add support for multi tab sessions
* feat(backend): added support of multitabs
* fix(backend): added support of deprecated batch meta message to pre-decoder
* fix(backend): fixed nil meta issue for TabData messages in sink
* feat(player): add tabmanager
* feat(player): basic tabchange event support
* feat(player): pick tabstate for console panel and timeline
* fix(player): only display tabs that are created
* feat(player): connect performance, xray and events to tab state
* feat(player): merge all tabs data for overview
* feat(backend/tracker): extract tabdata into separate message from batchmeta
* fix(tracker): fix new session check
* fix(backend): remove batchmetadeprecated
* fix(backend): fix switch case
* fix(player): fix for tab message size
* feat(tracker): check for active tabs with broadcast channel
* feat(tracker): prevent multiple messages
* fix(tracker): ignore beacons from same tab, only ask if token isnt present yet, add small delay before start to wait for answer
* feat(player): support new msg struct in assist player
* fix(player): fix some livepl components for multi tab states
* feat(tracker): add option to disable multitab
* feat(tracker): add multitab to assist plugin
* feat(player): back compat for tab id
* fix(ui): fix missing list in controls
* fix(ui): optional list update
* feat(ui): fix visuals for multitab; use window focus event for tabs
* fix(tracker): fix for dying tests (added tabid to writer, refactored other tests)
* feat(ui): update LivePlayerSubHeader.tsx to support tabs
* feat(backend): added tabs support to devtools mob files
* feat(ui): connect state to current tab properly
* feat(backend): added multitab support to assits
* feat(backend): removed data check in agent message
* feat(backend): debug on
* fix(backend): fixed typo in message broadcast
* feat(backend): fixed issue in connect method
* fix(assist): fixed typo
* feat(assist): added more debug logs
* feat(assist): removed one log
* feat(assist): more logs
* feat(assist): use query.peerId
* feat(assist): more logs
* feat(assist): fixed session update
* fix(assist): fixed getSessions
* fix(assist): fixed request_control broadcast
* fix(assist): fixed typo
* fix(assist): added missed line
* fix(assist): fix typo
* feat(tracker): multitab support for assist sessions
* fix(tracker): fix dead tests (tabid prop)
* fix(tracker): fix yaml
* fix(tracker): timers issue
* fix(ui): fix ui E2E tests with magic?
* feat(assist): multitabs support for ee version
* fix(assist): added missed method import
* fix(tracker): fix fix events in assist
* feat(assist): added back compatibility for sessions without tabId
* fix(assist): apply message's top layer structure before broadcast call
* fix(assist): added random tabID for prev version
* fix(assist): added random tabID for prev version (ee)
* feat(assist): added debug logs
* fix(assist): fix typo in sessions_agents_count method
* fix(assist): fixed more typos in copy-pastes
* fix(tracker): fix restart timings
* feat(backend): added tabIDs for some events
* feat(ui): add tab change event to the user steps bar
* Revert "feat(backend): added tabIDs for some events"
This reverts commit 1467ad7f9f.
* feat(ui): revert timeline and xray to grab events from all tabs
* fix(ui): fix typo
---------
Co-authored-by: Alexander Zavorotynskiy <zavorotynskiy@pm.me>
133 lines
No EOL
4.2 KiB
YAML
133 lines
No EOL
4.2 KiB
YAML
# Checking unit and visual tests locally on every merge rq to dev and main
|
|
name: Frontend tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ "main" ]
|
|
paths:
|
|
- frontend/**
|
|
- tracker/**
|
|
pull_request:
|
|
branches: [ "dev", "main" ]
|
|
paths:
|
|
- frontend/**
|
|
- tracker/**
|
|
env:
|
|
API: ${{ secrets.E2E_API_ORIGIN }}
|
|
ASSETS: ${{ secrets.E2E_ASSETS_ORIGIN }}
|
|
APIEDP: ${{ secrets.E2E_EDP_ORIGIN }}
|
|
CY_ACC: ${{ secrets.CYPRESS_ACCOUNT }}
|
|
CY_PASS: ${{ secrets.CYPRESS_PASSWORD }}
|
|
FOSS_PROJECT_KEY: ${{ secrets.FOSS_PROJECT_KEY }}
|
|
FOSS_INGEST: ${{ secrets.FOSS_INGEST }}
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: macos-latest
|
|
name: Build and test Tracker plus Replayer
|
|
strategy:
|
|
matrix:
|
|
node-version: [ 16.x ]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Cache tracker modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: tracker/tracker/node_modules
|
|
key: ${{ runner.OS }}-test_tracker_build-${{ hashFiles('**/yarn.lock') }}
|
|
restore-keys: |
|
|
test_tracker_build{{ runner.OS }}-build-
|
|
test_tracker_build{{ runner.OS }}-
|
|
- name: Setup Testing packages
|
|
run: |
|
|
cd tracker/tracker
|
|
npm i -g yarn
|
|
yarn
|
|
- name: Build tracker inst
|
|
run: |
|
|
cd tracker/tracker
|
|
yarn build
|
|
- name: Setup Testing UI Env
|
|
run: |
|
|
cd tracker/tracker-testing-playground
|
|
echo "REACT_APP_KEY=$FOSS_PROJECT_KEY" >> .env
|
|
echo "REACT_APP_INGEST=$FOSS_INGEST" >> .env
|
|
- name: Setup Testing packages
|
|
run: |
|
|
cd tracker/tracker-testing-playground
|
|
yarn
|
|
- name: Wait for Testing Frontend
|
|
run: |
|
|
cd tracker/tracker-testing-playground
|
|
yarn start &> ui.log &
|
|
npx wait-on http://localhost:3000
|
|
cd ../../frontend
|
|
- name: Cache node modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: frontend/node_modules
|
|
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
|
|
restore-keys: |
|
|
${{ runner.OS }}-build-
|
|
${{ runner.OS }}-
|
|
- name: Setup env
|
|
run: |
|
|
cd frontend
|
|
echo "NODE_ENV=development" >> .env
|
|
echo "SOURCEMAP=true" >> .env
|
|
echo "ORIGIN=$API" >> .env
|
|
echo "ASSETS_HOST=$ASSETS" >> .env
|
|
echo "API_EDP=$APIEDP" >> .env
|
|
echo "SENTRY_ENABLED = false" >> .env
|
|
echo "SENTRY_URL = ''" >> .env
|
|
echo "CAPTCHA_ENABLED = false" >> .env
|
|
echo "CAPTCHA_SITE_KEY = 'asdad'" >> .env
|
|
echo "MINIO_ENDPOINT = ''" >> .env
|
|
echo "MINIO_PORT = ''" >> .env
|
|
echo "MINIO_USE_SSL = ''" >> .env
|
|
echo "MINIO_ACCESS_KEY = ''" >> .env
|
|
echo "MINIO_SECRET_KEY = ''" >> .env
|
|
echo "VERSION = '1.9.0'" >> .env
|
|
echo "TRACKER_VERSION = '4.0.0'" >> .env
|
|
echo "COMMIT_HASH = 'dev'" >> .env
|
|
echo "{ \"account\": \"$CY_ACC\", \"password\": \"$CY_PASS\" }" >> cypress.env.json
|
|
|
|
- name: Setup packages
|
|
run: |
|
|
cd frontend
|
|
yarn
|
|
- name: Run unit tests
|
|
run: |
|
|
cd frontend
|
|
yarn test
|
|
- name: Run Frontend
|
|
run: |
|
|
cd frontend
|
|
yarn start &> frontend.log &
|
|
- name: Wait for frontend
|
|
run: |
|
|
cd frontend
|
|
npx wait-on http://0.0.0.0:3333
|
|
- name: (Chrome) Run visual tests
|
|
run: |
|
|
cd frontend
|
|
yarn cy:test
|
|
# firefox have different viewport somehow
|
|
# - name: (Firefox) Run visual tests
|
|
# run: yarn cy:test-firefox
|
|
# - name: (Edge) Run visual tests
|
|
# run: yarn cy:test-edge
|
|
- name: Upload Debug
|
|
if: ${{ failure() }}
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: 'Snapshots'
|
|
path: |
|
|
frontend/cypress/videos
|
|
frontend/cypress/snapshots/replayer.cy.ts
|
|
frontend/cypress/screenshots
|
|
frontend/cypress/snapshots/generalStability.cy.ts |