Skip to content

Commit

Permalink
chore: logs
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight committed Sep 25, 2024
1 parent ea6a5e3 commit 6fc5d40
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/e2e-tests/tests/hard/bridge/Bridge.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -50,33 +49,26 @@ test.describe('Bridge', () => {
fuelWallet = walletSettedUp.fuelWallet;
fuelWalletTestHelper = walletSettedUp.fuelWalletTestHelper;
account = walletSettedUp.account;
console.log('asd 2');

client = createPublicClient({
chain: foundry,
transport: http(),
});

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);
});

Expand All @@ -101,18 +93,22 @@ 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(
page,
'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,
Expand All @@ -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 () => {
Expand Down

0 comments on commit 6fc5d40

Please sign in to comment.