Skip to content

fix: removed tests #16070

fix: removed tests

fix: removed tests #16070

name: Playwright Critical Flow Tests
#on:
# pull_request:
# # we want to run the CI on every PR targetting those branches
# branches: [dev]
jobs:
smoke-tests:
name: Run Playwright Critical Flow Tests
if: github.repository == 'wireapp/wire-webapp'
runs-on: [self-hosted, Linux, X64, office]
timeout-minutes: 45
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Add repository Yarn wrapper to PATH
run: echo "$GITHUB_WORKSPACE/bin" >> "$GITHUB_PATH"
- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install JS dependencies
run: ./bin/yarn --immutable
- name: Install Playwright browsers
timeout-minutes: 30
run: ./bin/yarn playwright install --only-shell --with-deps chromium
- name: Install 1Password
uses: 1password/install-cli-action@8d006a0d0a4fd505af7f7ce589e7f768385ff5e4
- name: Generate env file
run: op inject -i apps/webapp/test/e2e_tests/.env.tpl -o apps/webapp/test/e2e_tests/.env
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
- name: Run critical flow tests
run: ./bin/yarn nx run webapp:e2e --grep "@crit-flow-web"
- name: Upload test report
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: playwright-report
path: playwright-report/
- name: Generate PR comment
if: always()
id: generate_comment
run: |
node --experimental-strip-types apps/webapp/test/e2e_tests/scripts/create-playwright-report-summary.ts
COMMENT=$(cat playwright-report-summary.txt)
echo "comment<<EOF" >> $GITHUB_OUTPUT
echo "$COMMENT" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Comment on PR
if: always()
uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0
with:
header: playwright-summary
message: |
🔗 [Download Full Report Artifact](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
${{ steps.generate_comment.outputs.comment }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}