Skip to content

Commit

Permalink
fix immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtzData committed May 26, 2024
1 parent 337dea4 commit 2e31a0d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions tests/e2e/pages/NewHome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,25 @@ export class NewHomePage extends CommonPage {
await this.actions.verifyElementIsDisplayed(this.BLOCK_PAGE_IS_VALID)
}

async checkBlocksImmutable(): Promise<void> {
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_HEADER} >> nth=0 >> text=/Block/`, `no Blocks header is present`)
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_HEADER} >> nth=1 >> text=/Size.*bytes/`, `no Size in bytes header is present`)
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_HEADER} >> nth=2 >> text=/Txn/`, `no Txn header is present`)
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_HEADER} >> nth=3 >> text=/Gas used/`, `no Gas used header is present`)
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_HEADER} >> nth=4 >> text=/Reward.*/`, `no Reward header is present`)
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_HEADER} >> nth=5 >> text=/Burnt fees.*/`, `no Burnt fees header is present`)

await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_FIRST_ROW} >> nth=0 >> text=/\\d+.*ago/`)
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_FIRST_ROW} >> nth=1 >> text=/\\d+/`)
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_FIRST_ROW} >> nth=2 >> text=/\\d+/`)
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_FIRST_ROW} >> nth=3 >> text=/\\d+.*\\d+\\%.*\\d+\\%/`)
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_FIRST_ROW} >> nth=4 >> text=/\\d+/`)
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_FIRST_ROW} >> nth=5 >> text=/\\d+.*\\d+\\%/`)

await this.actions.clickElement(this.RECENT_BLOCK_URL)
await this.actions.verifyElementIsDisplayed(this.BLOCK_PAGE_IS_VALID)
}

async checkBlocks(): Promise<void> {
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_HEADER} >> nth=0 >> text=/Block/`, `no Blocks header is present`)
await this.actions.verifyElementIsDisplayed(`${this.BLOCKS_HEADER} >> nth=1 >> text=/Size.*bytes/`, `no Size in bytes header is present`)
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/functional/Rollup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test(`@Rollup Txn batches table verification`, async ({ context, newRollupTxnBat
await newRollupTxnBatches.validateTable(context)
})

test.only(`@Rollup Txn batches table verification (ZKEVM)`, async ({ context, newRollupTxnBatchesZKEvm }) => {
test(`@Rollup Txn batches table verification (ZKEVM)`, async ({ context, newRollupTxnBatchesZKEvm }) => {
await newRollupTxnBatchesZKEvm.open()
await newRollupTxnBatchesZKEvm.validateTable(context, 40)
})
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/functional/SmokeBlocks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ test(`@SmokeEthIotaShimmer Iota Shimmer blocks`, async ({ context, newHomePage }

test(`@SmokeEthImmutable Immutable blocks`, async ({ context, newHomePage }) => {
await newHomePage.open_custom(`https://explorer.testnet.immutable.com/blocks`)
await newHomePage.checkBlocks()
await newHomePage.checkBlocksImmutable()
})

test(`@SmokeEthShibariumMainnet Shibarium blocks`, async ({ context, newHomePage }) => {
Expand Down

0 comments on commit 2e31a0d

Please sign in to comment.