diff --git a/apps/explorer-e2e/src/support/pages/home-page.ts b/apps/explorer-e2e/src/support/pages/home-page.ts index 5a288b36a..226623be9 100644 --- a/apps/explorer-e2e/src/support/pages/home-page.ts +++ b/apps/explorer-e2e/src/support/pages/home-page.ts @@ -49,7 +49,7 @@ export default class HomePage extends BasePage { cy.wrap($value).should('not.be.empty'); if (index == 6) { // Total staked value - const totalStakedRegex = /^[0-9]+(\.[0-9]{0,2})?$/; + const totalStakedRegex = /^\d{1,3}(,\d{3})*(\.\d{1,2})?$/; cy.wrap($value).invoke('text').should('match', totalStakedRegex); // Check that value is number with 2dp } }) diff --git a/apps/explorer-e2e/src/support/pages/transactions-page.ts b/apps/explorer-e2e/src/support/pages/transactions-page.ts index 5791a384a..ad0c7f0c4 100644 --- a/apps/explorer-e2e/src/support/pages/transactions-page.ts +++ b/apps/explorer-e2e/src/support/pages/transactions-page.ts @@ -73,7 +73,11 @@ export default class TransactionsPage extends BasePage { cy.wait(1000); // Wait for transactions to load if there are any cy.get('body').then(($body) => { if ($body.find(`[data-testid=${this.transactionRow}]`).length) { - cy.getByTestId(this.transactionRow).first().find('a').first().click(); + cy.getByTestId(this.transactionRow) + .first() + .find('a') + .first() + .click({ force: true }); } else { cy.slack('Unable to find any transactions on page'); cy.screenshot();