diff --git a/src/pages/common/productsList/index.ts b/src/pages/common/productsList/index.ts index 36a690f..45a91c1 100644 --- a/src/pages/common/productsList/index.ts +++ b/src/pages/common/productsList/index.ts @@ -78,7 +78,7 @@ export class ProductsList { parseFloat(element.split('%')[0]) ); // Log for debugging purposes - console.log('=== allBorrowRatesNumbers: ', allBorrowRatesNumbers); + console.log('allBorrowRatesNumbers: ', allBorrowRatesNumbers); expect( allBorrowRatesNumbers.every((rate) => rate > 0), @@ -99,7 +99,7 @@ export class ProductsList { parseFloat(element.split('x')[0]) ); // Log for debugging purposes - console.log('=== allMaxMultiplesNumbers: ', allMaxMultiplesNumbers); + console.log('allMaxMultiplesNumbers: ', allMaxMultiplesNumbers); expect( allMaxMultiplesNumbers.every((rate) => rate > 0), @@ -117,7 +117,7 @@ export class ProductsList { const allPoolsManagement = await this.poolLocator.locator('td:nth-child(3)').allInnerTexts(); // Log for debugging purposes - console.log('=== allPoolsManagement: ', allPoolsManagement); + console.log('allPoolsManagement: ', allPoolsManagement); expect( allPoolsManagement.every((managementType) => ['Active', 'Passive'].includes(managementType)), diff --git a/tests/noWallet/borrowPage.spec.ts b/tests/noWallet/borrowPage.spec.ts index df3bdb8..8763485 100644 --- a/tests/noWallet/borrowPage.spec.ts +++ b/tests/noWallet/borrowPage.spec.ts @@ -36,7 +36,7 @@ test.describe('Borrow page', async () => { }); numberOfPools.forEach((poolIndex) => { - test(`It should open position page for all available BORROW pools - Page 1 - ${poolIndex} @regression`, async ({ + test(`It should open position page for all available BORROW pools - Page 1 - ${poolIndex}`, async ({ app, }) => { await app.borrow.open(); @@ -50,11 +50,11 @@ test.describe('Borrow page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -85,11 +85,11 @@ test.describe('Borrow page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -122,11 +122,11 @@ test.describe('Borrow page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -161,11 +161,11 @@ test.describe('Borrow page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -202,11 +202,11 @@ test.describe('Borrow page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -245,11 +245,11 @@ test.describe('Borrow page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -290,11 +290,11 @@ test.describe('Borrow page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -337,11 +337,11 @@ test.describe('Borrow page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -386,11 +386,11 @@ test.describe('Borrow page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); diff --git a/tests/noWallet/earnPage.spec.ts b/tests/noWallet/earnPage.spec.ts index 9e7ae35..fb32134 100644 --- a/tests/noWallet/earnPage.spec.ts +++ b/tests/noWallet/earnPage.spec.ts @@ -46,7 +46,7 @@ test.describe('Earn page', async () => { }); numberOfPools.forEach((poolIndex) => { - test(`It should open position page for all available EARN pools - Page 1 - ${poolIndex} @regression`, async ({ + test(`It should open position page for all available EARN pools - Page 1 - ${poolIndex}`, async ({ app, }) => { await app.earn.open(); diff --git a/tests/noWallet/homepage.spec.ts b/tests/noWallet/homepage.spec.ts index 0dd54a8..603ea22 100644 --- a/tests/noWallet/homepage.spec.ts +++ b/tests/noWallet/homepage.spec.ts @@ -81,11 +81,11 @@ test.describe('Homepage', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -109,10 +109,10 @@ test.describe('Homepage', async () => { const pool = await app.homepage.productHub.list.nthPool(poolIndex).getPool(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -136,10 +136,10 @@ test.describe('Homepage', async () => { const pool = await app.homepage.productHub.list.nthPool(poolIndex).getPool(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); diff --git a/tests/noWallet/multiplyPage.spec.ts b/tests/noWallet/multiplyPage.spec.ts index 0082b50..eaa7206 100644 --- a/tests/noWallet/multiplyPage.spec.ts +++ b/tests/noWallet/multiplyPage.spec.ts @@ -5,7 +5,7 @@ const numberOfPoolsPage7 = Array.from({ length: 8 }, (_, index) => 0 + index); test.describe('Multiply page', async () => { numberOfPools.forEach((poolIndex) => { - test(`It should open position page for all available MULTIPLY pools - Page 1 - ${poolIndex} @regression`, async ({ + test(`It should open position page for all available MULTIPLY pools - Page 1 - ${poolIndex}`, async ({ app, }) => { await app.multiply.open(); @@ -19,11 +19,11 @@ test.describe('Multiply page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -54,11 +54,11 @@ test.describe('Multiply page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -91,11 +91,11 @@ test.describe('Multiply page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -130,11 +130,11 @@ test.describe('Multiply page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -171,11 +171,11 @@ test.describe('Multiply page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -214,11 +214,11 @@ test.describe('Multiply page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); @@ -259,11 +259,11 @@ test.describe('Multiply page', async () => { const strategy = await app.homepage.productHub.list.nthPool(poolIndex).getStrategy(); const protocol = await app.homepage.productHub.list.nthPool(poolIndex).getProtocol(); const network = await app.homepage.productHub.list.nthPool(poolIndex).getNetwork(); - console.log('++++ Pool Index: ', poolIndex); - console.log('++++ Pool: ', pool); - console.log('++++ Strategy: ', strategy); - console.log('++++ Protocol: ', protocol); - console.log('++++ Network: ', network); + console.log('Pool Index: ', poolIndex); + console.log('Pool: ', pool); + console.log('Strategy: ', strategy); + console.log('Protocol: ', protocol); + console.log('Network: ', network); await app.homepage.productHub.list.nthPool(poolIndex).shouldBevisible(); await app.homepage.productHub.list.nthPool(poolIndex).open(); diff --git a/utils/general.ts b/utils/general.ts index d1e1915..ed9b211 100644 --- a/utils/general.ts +++ b/utils/general.ts @@ -12,8 +12,8 @@ export const comparePositionsData = (stagingPositions, productionPositions) => { Object.keys(stagingPosition).every((key) => stagingPosition[key] === productionPosition[key]) ); if (!positionResult) { - console.log('+++ Inconsistent Position Data - Staging: ', stagingPosition); - console.log('+++ Inconsistent Position Data - Production: ', productionPositions[0]); + console.log('Inconsistent Position Data - Staging: ', stagingPosition); + console.log('Inconsistent Position Data - Production: ', productionPositions[0]); } return positionResult; }); diff --git a/utils/setup.ts b/utils/setup.ts index e050a92..cf19c04 100644 --- a/utils/setup.ts +++ b/utils/setup.ts @@ -80,7 +80,7 @@ export const setup = async ({ const walletAddress = await metamask.walletAddress(); // Logging walletAddress for debugging purposes // - Info displayed in 'Attachments > stdout' section of playwright reports - console.log('+++ Wallet Address: ', walletAddress); + console.log('Wallet Address: ', walletAddress); await app.page.goto(''); await app.homepage.shouldBeVisible(); @@ -126,7 +126,7 @@ export const setup = async ({ // Logging forkId for debugging purposes // - Info displayed in 'Attachments > stdout' section of playwright reports - console.log('+++ Fork Id: ', forkId); + console.log('Fork Id: ', forkId); } return { forkId, walletAddress };