Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight committed Sep 25, 2024
1 parent 16a2692 commit a2db8c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/e2e-tests/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ const config: PlaywrightTestConfig = defineConfig({
expect: {
timeout: 5000,
},
reporter: [
['list', { printSteps: true }],
['html', { outputFolder: join(__dirname, './playwright-html/hard/') }],
['github'],
],
reporter: process.env.CI
? [['list', { printSteps: true }]]
: [
['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,
retries: 0,
Expand Down
4 changes: 4 additions & 0 deletions packages/e2e-tests/tests/hard/bridge/Bridge.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ test.describe('Bridge', () => {
});

await test.step('Fill data and click on deposit', async () => {
console.log('asd 71');
await hasDropdownSymbol(page, 'ETH');
const depositInput = page.locator('.fuel-InputAmountField input');
await depositInput.fill(DEPOSIT_AMOUNT);
Expand All @@ -150,12 +151,14 @@ test.describe('Bridge', () => {
});

await test.step('Approve transaction on Metamask', async () => {
console.log('asd 72');
// Timeout needed until https://github.com/Synthetixio/synpress/issues/795 is fixed
await page.waitForTimeout(2000);
await metamask.confirmTransaction();
});

await test.step('Check if deposit is completed', async () => {
console.log('asd 73');
await page.locator(':nth-match(:text("Done"), 1)').waitFor();
await page.locator(':nth-match(:text("Done"), 3)').waitFor();

Expand All @@ -180,6 +183,7 @@ test.describe('Bridge', () => {
});

await test.step('Check deposit tx in the Tx list', async () => {
console.log('asd 74');
await closeTransactionPopup(page);

const postDepositBalanceFuel = await fuelWallet.getBalance(baseAssetId);
Expand Down

0 comments on commit a2db8c9

Please sign in to comment.