Scroll down block page in e2e tests

This commit is contained in:
softsimon
2024-05-21 00:01:40 +07:00
parent abad704fc6
commit 0c49c5313b
6 changed files with 26 additions and 3 deletions

View File

@@ -58,9 +58,11 @@ export class BlockTransactionsComponent implements OnInit, OnDestroy {
this.blockReward.emit(blockReward);
}
this.unsubscribeNextBlockSubscriptions();
setTimeout(() => {
this.nextBlockTxListSubscription = this.electrsApiService.getBlockTransactions$(this.previousBlockHash).subscribe();
}, 100);
if (this.previousBlockHash) {
setTimeout(() => {
this.nextBlockTxListSubscription = this.electrsApiService.getBlockTransactions$(this.previousBlockHash).subscribe();
}, 100);
}
})
);