Skip to content

Commit

Permalink
chore: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahschwartz committed Oct 11, 2024
1 parent f1db065 commit 45360ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/playwright.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
name: playwright-report
path: playwright-report/
retention-days: 10


5 changes: 5 additions & 0 deletions tests/utils/metamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down

0 comments on commit 45360ad

Please sign in to comment.