60e2149072
Tasks 16-20: Online Board Tests (Search/Filter, Tabs, Flight List, Details Modal, Time/Date) - Task 16: Search & Filter tests (37 tests) - departure/arrival cities, passenger count, cabin class - Task 17: Arrival/Departure Tabs tests (45 tests) - tab switching, flight display, sorting - Task 18: Flight List View tests (50 tests) - display, sorting, filtering, pagination, loading states - Task 19: Flight Details Modal tests (40 tests) - opening/closing, content display, actions - Task 20: Time & Date Filter tests (43 tests) - date selection, time ranges, calendar navigation Tasks 21-25: Flight Details Tests (Flight Info, Passengers, Seats, Services, Fares) - Task 21: Flight Info Display tests (40 tests) - basic info, airports, route visualization, timeline - Task 22: Passenger Info tests (50 tests) - passenger list, details, services, special requirements - Task 23: Seat Selection tests (50 tests) - seat map, selection, categories, recommendations - Task 24: Service Selection tests (25 tests) - baggage, meals, seats, summary - Task 25: Fare Display tests (55 tests) - fare breakdown, comparisons, discounts, refunds All tests follow AAA pattern and use data-testid selectors matching Angular version. Total: 245 tests across 10 feature suites.
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
name: Backstop Sanity Docker
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
actions: write
|
|
checks: write
|
|
contents: write
|
|
pull-requests: write
|
|
packages: write
|
|
|
|
env:
|
|
NODE_VERSION: 20
|
|
# BRANCH_NAME: ${{ github.event.pull_request.head_ref || github.event.pull_request.head.ref_name || github.head_ref || github.ref_name }}
|
|
# REGISTRY: ghcr.io
|
|
# IMAGE_NAME: ${{ github.repository }}
|
|
|
|
jobs:
|
|
sanity-puppeteer-docker:
|
|
name: 🤪 Puppeteer-On-Docker
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
ref: ${{ github.event.pull_request.head.sha || github.ref }}
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
run:
|
|
echo "USERNAME=${secrets.DOCKERHUB_USERNAME}" >>${GITHUB_ENV}
|
|
echo "USERNAME=${secrets.DOCKERHUB_TOKEN}" >>${GITHUB_ENV}
|
|
|
|
- name: Set Name and Tag Vars
|
|
env:
|
|
name: "${{ env.BRANCH_NAME }}"
|
|
run: |
|
|
echo "IMAGE_NAME_LC=${IMAGE_NAME,,}" >>${GITHUB_ENV}
|
|
echo "TAG=${name/\//-}" >> $GITHUB_ENV
|
|
echo "PV=$(cat package.json | jq -r '.version')" >> $GITHUB_ENV
|
|
echo "PLAYWRIGHT_VERSION=$(cat package.json | jq -r '.dependencies.playwright')" >> $GITHUB_ENV
|
|
|
|
- name: ⬢ Setup Node & Cache
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
cache: "npm"
|
|
cache-dependency-path: package-lock.json
|
|
|
|
- name: ↧ Install
|
|
run: npm ci
|
|
|
|
- name: "𓋏 Run `npm run sanity-test-docker`"
|
|
run: |
|
|
npm run sanity-test-docker
|
|
|
|
|
|
|
|
|