Skip to content

Commit

Permalink
Merge pull request #287 from AppQuality/develop
Browse files Browse the repository at this point in the history
Update url, add playwright, refactor user handling
  • Loading branch information
d-beezee authored Jan 25, 2024
2 parents 67355c9 + 6fae07d commit f41433f
Show file tree
Hide file tree
Showing 454 changed files with 7,251 additions and 6,345 deletions.
9 changes: 9 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
REACT_APP_GTM_ID=

REACT_APP_API_URL=https://dev.tryber.me/api

REACT_APP_DEFAULT_TOKEN=

REACT_APP_CROWD_WP_URL=https://dev.tryber.me

REACT_APP_DATADOG_CLIENT_TOKEN=
69 changes: 50 additions & 19 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,61 @@
name: Run Tests
name: Run E2E Tests
on:
push:
branches: [main, master]
pull_request:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
push:
branches: [main, master, develop]

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
basicTests:
if: ${{ (github.event.pull_request.draft == false) || (github.event_name == 'push' ) || github.event_name == 'workflow_dispatch' }}
strategy:
fail-fast: false
matrix:
# run 3 copies of the job in parallel
shard: [1, 2, 3]

name: "Playwright Tests - pwc"
timeout-minutes: 20
runs-on: ubuntu-22.04
container: mcr.microsoft.com/playwright:v1.39.0-jammy

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

# https://github.com/actions/runner-images/issues/6775
- run: |
echo "$GITHUB_WORKSPACE"
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Extract hash commit
shell: bash
run: |
COMMIT=$(git rev-parse --short HEAD)
echo "##[set-output name=commit;]$COMMIT"
id: extract_commit

- uses: actions/setup-node@v3
with:
node-version: 18
node-version: "18.x"

- name: Install dependencies
run: |
echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} > .npmrc
npm install -g yarn && yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
npm install -g yarn && yarn install --frozen-lockfile
npx playwright install chrome
- name: Run Tests
continue-on-error: false
env:
CURRENTS_PROJECT_ID: ${{ secrets.CURRENTS_PROJECT_ID }}
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}

run: |
npx pwc --ci-build-id ${{ steps.extract_commit.outputs.commit }} --shard=${{ matrix.shard }}/${{ strategy.job-total }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ cypress/downloads

# Sentry Config File
.sentryclirc
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
26 changes: 0 additions & 26 deletions cypress.config.ts

This file was deleted.

100 changes: 0 additions & 100 deletions cypress/e2e/dashboard/booty_stats.cy.ts

This file was deleted.

70 changes: 0 additions & 70 deletions cypress/e2e/profile/base-tab.cy.ts

This file was deleted.

45 changes: 0 additions & 45 deletions cypress/e2e/profile/fiscal-tab.cy.ts

This file was deleted.

Loading

0 comments on commit f41433f

Please sign in to comment.