diff --git a/.github/workflows/playwright.yaml b/.github/workflows/playwright.yaml index 7cfd6c0..86bde8c 100644 --- a/.github/workflows/playwright.yaml +++ b/.github/workflows/playwright.yaml @@ -27,10 +27,6 @@ jobs: run: bun playwright install chromium --with-deps - name: Run Era Test Node uses: dutterbutter/era-test-node-action@v1 - - name: Install xvfb - run: | - sudo apt-get install --no-install-recommends -y \ - xvfb - name: Create Metamask Cache run: xvfb-run bun setup:mm - name: Run test for ${{ matrix.tutorial }} @@ -39,11 +35,11 @@ jobs: export COLUMNS=80 export LINES=24 xvfb-run bun test:headful ${{ matrix.tutorial }} - - name: Archive Playwright report - uses: actions/upload-artifact@v3 - if: failure() + - uses: actions/upload-artifact@v4 + if: ${{ !cancelled() }} with: - name: playwright-report-headful - path: | - bridge-ui/playwright-report-headful/ - if-no-files-found: error \ No newline at end of file + name: playwright-report + path: playwright-report/ + retention-days: 10 + + \ No newline at end of file diff --git a/tests/utils/metamask.ts b/tests/utils/metamask.ts index 26ff62d..99af0a8 100644 --- a/tests/utils/metamask.ts +++ b/tests/utils/metamask.ts @@ -3,6 +3,11 @@ import { ERA_TEST_NODE } from './wallet-setup/config'; import type { BrowserContext, Page } from '@playwright/test'; export async function connectToDapp(metamask: MetaMask, account: string = 'Account 1') { + console.log('METAMASK', metamask); + const pages = metamask.context.pages; + console.log('PAGES', pages); + const pageInfo = await metamask.page.content(); + console.log('PAGE INFO', pageInfo); await metamask.connectToDapp([account]); }