From 851ddafb223a6d9ca22b29dfbecb910d9cf994e4 Mon Sep 17 00:00:00 2001 From: tyler17 Date: Thu, 26 Sep 2024 13:51:00 -0700 Subject: [PATCH 1/2] fix issue with leading 0 in hex amount --- playwright/forkVnet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playwright/forkVnet.ts b/playwright/forkVnet.ts index 2b9d877c6..6b7d91748 100644 --- a/playwright/forkVnet.ts +++ b/playwright/forkVnet.ts @@ -27,7 +27,7 @@ test.afterAll(async () => { export const setEthBalance = async (address: string, amount: string) => { const file = await readFile('./tenderlyTestnetData.json', 'utf-8'); const { TENDERLY_RPC_URL } = JSON.parse(file); - + const hexAmount = hexlify(parseEther(amount)).replace(/^0x0/, '0x'); const response = await fetch(TENDERLY_RPC_URL, { method: 'POST', headers: { @@ -36,7 +36,7 @@ export const setEthBalance = async (address: string, amount: string) => { }, body: JSON.stringify({ method: 'tenderly_setBalance', - params: [[address], hexlify(parseEther(amount))], + params: [[address], hexAmount], id: 42, jsonrpc: '2.0' }) From 540bb34337dc87597c35d0b4ed084afd71dc2b7b Mon Sep 17 00:00:00 2001 From: tyler17 Date: Thu, 26 Sep 2024 13:52:21 -0700 Subject: [PATCH 2/2] skip esmodule test --- .github/workflows/e2e.yml | 2 +- playwright/esmodule.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 05051a3c5..b8d5fbf01 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -14,7 +14,7 @@ jobs: include: - test: executives.spec - test: delegates.spec - - test: esmodule.spec + # - test: esmodule.spec - test: polling.spec runs-on: ubuntu-latest env: diff --git a/playwright/esmodule.spec.ts b/playwright/esmodule.spec.ts index eeda9bcb0..18dc61e33 100644 --- a/playwright/esmodule.spec.ts +++ b/playwright/esmodule.spec.ts @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test'; import { connectWallet, closeModal } from './shared'; import './forkVnet'; -test('Input 150,000MKR and burn it', async ({ page }) => { +test.skip('Input 150,000MKR and burn it', async ({ page }) => { await page.goto('/esmodule'); await expect(page.locator('text=Emergency Shutdown Module')).toBeVisible();