From 18ae0605b63a9623ffa9986e450657d7e71fdb3e Mon Sep 17 00:00:00 2001 From: LuizAsFight Date: Wed, 25 Sep 2024 01:58:35 -0300 Subject: [PATCH] chore: e2e --- .github/workflows/pr-tests.yml | 2 ++ packages/e2e-tests/playwright.config.ts | 1 + packages/e2e-tests/tests/hard/bridge/utils/wallets.ts | 6 ------ 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 291ee56d5..5b1373e5c 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -92,6 +92,8 @@ jobs: - name: Run E2E Tests run: xvfb-run --auto-servernum -- pnpm test:e2e-soft + env: + PLAYWRIGHT_JSON_OUTPUT_NAME: playwright-report/results.json - uses: actions/upload-artifact@v4 if: always() diff --git a/packages/e2e-tests/playwright.config.ts b/packages/e2e-tests/playwright.config.ts index d2dae8e75..1f4c96706 100644 --- a/packages/e2e-tests/playwright.config.ts +++ b/packages/e2e-tests/playwright.config.ts @@ -15,6 +15,7 @@ const config: PlaywrightTestConfig = defineConfig({ reporter: [ ['list', { printSteps: true }], ['html', { outputFolder: join(__dirname, './playwright-html/hard/') }], + ['github'], ], // Fail the build on CI if left test.only in the source code forbidOnly: !!process.env.CI, diff --git a/packages/e2e-tests/tests/hard/bridge/utils/wallets.ts b/packages/e2e-tests/tests/hard/bridge/utils/wallets.ts index 0b42a9998..48b9e1cd0 100644 --- a/packages/e2e-tests/tests/hard/bridge/utils/wallets.ts +++ b/packages/e2e-tests/tests/hard/bridge/utils/wallets.ts @@ -27,10 +27,8 @@ export const setupFuelWallet = async ({ context, extensionId, }: { page: Page; context: BrowserContext; extensionId: string }) => { - console.log('asd 11'); const fuelProvider = await Provider.create(PROVIDER_URL); const chainName = (await fuelProvider.fetchChain()).name; - console.log('asd 12'); const fuelWalletTestHelper = await FuelWalletTestHelper.walletSetup( context, @@ -38,21 +36,17 @@ export const setupFuelWallet = async ({ PROVIDER_URL, chainName, ); - console.log('asd 13'); await fuelWalletTestHelper.addAccount(); await fuelWalletTestHelper.addAccount(); await fuelWalletTestHelper.addAccount(); - console.log('asd 14'); await fuelWalletTestHelper.switchAccount('Account 1'); const account = mnemonicToAccount(ETH_MNEMONIC); - console.log('asd 15'); const fuelWallet = Wallet.fromMnemonic( FUEL_MNEMONIC, undefined, undefined, fuelProvider, ); - console.log('asd 16'); return { fuelWallet, fuelWalletTestHelper, account }; };