Skip to content

Commit

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

it('should transfer to accounts', () => {
const selectedAccount = mockedAccounts.at(0);
const selectedAccount = mockedAccounts.at(1);

navigateToTransfercoinsOfAccountIndex(2);

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

cy.get('[data-testid="popup-modal-content"]').should('be.visible');
cy.get('[data-testid="transfer-between-accounts"]')
.should('exist')
.click()
.then(() => {
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-0"]').should('exist').click();

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

it('should refuse wrong currency input', () => {
Expand Down

0 comments on commit d9f60dd

Please sign in to comment.