diff --git a/packages/e2e-tests/tests/hard/bridge/Bridge.test.ts b/packages/e2e-tests/tests/hard/bridge/Bridge.test.ts index 86fff408..8be018e1 100644 --- a/packages/e2e-tests/tests/hard/bridge/Bridge.test.ts +++ b/packages/e2e-tests/tests/hard/bridge/Bridge.test.ts @@ -41,7 +41,6 @@ test.describe('Bridge', () => { let fuelWalletTestHelper: FuelWalletTestHelper; test.beforeEach(async ({ context, extensionId, page }) => { - console.log('asd 1'); const walletSettedUp = await setupFuelWallet({ context, extensionId, @@ -50,7 +49,6 @@ test.describe('Bridge', () => { fuelWallet = walletSettedUp.fuelWallet; fuelWalletTestHelper = walletSettedUp.fuelWalletTestHelper; account = walletSettedUp.account; - console.log('asd 2'); client = createPublicClient({ chain: foundry, @@ -58,25 +56,19 @@ test.describe('Bridge', () => { }); await page.bringToFront(); - console.log('asd 3'); await page.goto('/bridge'); await page.waitForTimeout(3000); - console.log('asd 4'); await page.reload(); }); test('e2e', async ({ page, context }) => { - console.log('asd 5'); await test.step('Connect to Fuel', async () => { - console.log('asd 6'); await connectToFuel(page, fuelWalletTestHelper, [ 'Account 2', 'Account 4', ]); - console.log('asd 7'); }); await test.step('Connect to metamask', async () => { - console.log('asd 8'); await connectToMetamask(page); }); @@ -101,6 +93,7 @@ test.describe('Bridge', () => { const baseAssetId = fuelWallet.provider.getBaseAssetId(); await test.step('Fuel wallet should be connected after refresh', async () => { + console.log('asd 1'); await goToBridgePage(page); const connectedWallet = getByAriaLabel( @@ -108,11 +101,14 @@ test.describe('Bridge', () => { 'Fuel Local: Connected Wallet', ); const address = await connectedWallet.innerText(); + console.log('asd 2'); const balance = getByAriaLabel(page, 'Balance'); const balanceText = await balance.innerText(); + console.log('asd 3'); // refresh the page await page.goto('/bridge'); + console.log('asd 4'); const connectedWalletAferRefresh = getByAriaLabel( page, @@ -122,8 +118,12 @@ test.describe('Bridge', () => { const balanceAfterRefresh = getByAriaLabel(page, 'Balance'); const balanceTextAfterRefresh = await balanceAfterRefresh.innerText(); + console.log('asd 5'); + expect(addressAfterRefresh).toEqual(address); expect(balanceTextAfterRefresh).toEqual(balanceText); + + console.log('asd 6'); }); await test.step('Deposit ETH to Fuel', async () => {