Skip to content

fix: localStorage undefined in CRX FE-1221 #311

fix: localStorage undefined in CRX FE-1221

fix: localStorage undefined in CRX FE-1221 #311

Workflow file for this run

name: Tests E2E
on:
pull_request:
branches: [main, master, sdk-v2]
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
tests-e2e:
name: Test (Chrome Stable)
timeout-minutes: 15
runs-on: buildjet-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v3
- uses: FuelLabs/github-actions/setups/node@master
with:
node-version: 20.11.0
pnpm-version: 9.5.0
- uses: FuelLabs/github-actions/setups/docker@master
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Start Test Node
run: pnpm node:up
- name: Generate .env
run: cp packages/app/.env.example packages/app/.env
- uses: ./.github/actions/setup-playwright
- name: Run E2E Tests
run: xvfb-run --auto-servernum -- pnpm test:e2e
timeout-minutes: 15
env:
NODE_ENV: test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-app-report-stable
path: packages/app/playwright-results
retention-days: 30
- name: Stop Test Node
run: pnpm node:clean
tests-e2e-beta:
name: Test (Chrome Beta)
timeout-minutes: 15
runs-on: buildjet-8vcpu-ubuntu-2204
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: FuelLabs/github-actions/setups/node@master
with:
node-version: 20.11.0
pnpm-version: 9.5.0
- uses: FuelLabs/github-actions/setups/docker@master
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Start Test Node
run: pnpm node:up
- name: Generate .env
run: cp packages/app/.env.example packages/app/.env
- name: Build Application
run: pnpm build:app
env:
## increase node.js m memory limit for building
## with sourcemaps
NODE_OPTIONS: "--max-old-space-size=4096"
- uses: ./.github/actions/setup-playwright
with:
browser: 'chrome-beta'
- name: Run E2E Tests
run: xvfb-run --auto-servernum -- pnpm test:e2e:beta
timeout-minutes: 15
env:
NODE_ENV: test
READONLY_TESTNET_ASSETS_VIEW: ${{ secrets.READONLY_TESTNET_ASSETS_VIEW }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-app-report-beta
path: packages/app/playwright-results
retention-days: 30
- name: Stop Test Node
run: pnpm node:clean