Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Sep 29, 2022
1 parent cd5f08d commit 77f8b1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cypress/e2e/scenario-transaction.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ describe('Scenario : from mnemonic', () => {

before(function () {
cy.visit('/account/oasis1qq5t7f2gecsjsdxmp5zxtwgck6pzpjmkvc657z6l')
cy.contains('Loading account')
cy.contains('Loading account').should('not.exist')
cy.findByTestId('account-balance-total').then($div => {
senderBalanceBefore = parseBalance($div.text())
})

cy.visit('/account/oasis1qz0k5q8vjqvu4s4nwxyj406ylnflkc4vrcjghuwk')
cy.contains('Loading account')
cy.contains('Loading account').should('not.exist')
cy.findByTestId('account-balance-total').then($div => {
recipientBalanceBefore = parseBalance($div.text())
Expand Down Expand Up @@ -48,6 +50,7 @@ describe('Scenario : from mnemonic', () => {
.should('be.eq', senderBalanceBefore - 10)

cy.visit('/account/oasis1qz0k5q8vjqvu4s4nwxyj406ylnflkc4vrcjghuwk')
cy.contains('Loading account')
cy.contains('Loading account').should('not.exist')
cy.findByTestId('account-balance-total')
.invoke('text')
Expand All @@ -62,12 +65,14 @@ describe('Scenario : from private key', () => {

before(function () {
cy.visit('/account/oasis1qz0k5q8vjqvu4s4nwxyj406ylnflkc4vrcjghuwk')
cy.contains('Loading account')
cy.contains('Loading account').should('not.exist')
cy.findByTestId('account-balance-total').then($div => {
senderBalanceBefore = parseBalance($div.text())
})

cy.visit('/account/oasis1qq5t7f2gecsjsdxmp5zxtwgck6pzpjmkvc657z6l')
cy.contains('Loading account')
cy.contains('Loading account').should('not.exist')
cy.findByTestId('account-balance-total').then($div => {
recipientBalanceBefore = parseBalance($div.text())
Expand Down Expand Up @@ -100,6 +105,7 @@ describe('Scenario : from private key', () => {
.should('be.eq', senderBalanceBefore - 10)

cy.visit('/account/oasis1qq5t7f2gecsjsdxmp5zxtwgck6pzpjmkvc657z6l')
cy.contains('Loading account')
cy.contains('Loading account').should('not.exist')
cy.findByTestId('account-balance-total')
.invoke('text')
Expand Down

0 comments on commit 77f8b1c

Please sign in to comment.