Skip to content

Commit

Permalink
Fix Transfer Account CI (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant authored Nov 7, 2023
1 parent 6cd9d10 commit e80584e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions web-frontend/cypress/e2e/acceptance/home/send.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,20 +195,19 @@ describe('E2E | Acceptance | Home | Send', () => {
});

it('should transfer to accounts', () => {
const randomIndex = Math.floor(Math.random() * mockedAccounts.length);
const selectedAccount = mockedAccounts.at(randomIndex);
const selectedAccount = mockedAccounts.at(0);

navigateToTransfercoinsOfAccountIndex(2);

cy.get('[data-testid="transfer-between-accounts"]').click();

cy.get('[data-testid="popup-modal-content"').should('be.visible');
cy.get('[data-testid="popup-modal-content"]').should('be.visible');

for (let i = 0; i < mockedAccounts.length; i++) {
cy.get(`[data-testid="selector-account-${i}"]`).should('be.visible');
}

cy.get(`[data-testid="selector-account-${randomIndex}"]`).click();
cy.get(`[data-testid="selector-account-0"]`).click();
cy.get(`[data-testid="input-field"]`).should(
'have.value',
selectedAccount.address,
Expand Down

0 comments on commit e80584e

Please sign in to comment.