Skip to content

Commit

Permalink
Add assertions for shared wallet status
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Stachyra committed May 26, 2021
1 parent 55b2fa4 commit a388e30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/spec/shared_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
acc_xpub_upd)

expect(update_payment).to be_correct_and_respond 200
expect(SHARED.wallets.get(incomplete_wid)['state']['status']).to eq 'incomplete'
expect(SHARED.wallets.get(incomplete_wid)).to be_correct_and_respond 200

update_delegation = SHARED.wallets.update_delegation_script(incomplete_wid,
Expand Down Expand Up @@ -216,6 +217,7 @@
expect(update_payment).to be_correct_and_respond 200

expect(SHARED.wallets.get(incomplete_wid)).to be_correct_and_respond 200
expect(SHARED.wallets.get(incomplete_wid)['state']['status']).to eq 'incomplete'

expect(SHARED.wallets.list).to be_correct_and_respond 200

Expand Down Expand Up @@ -288,6 +290,7 @@

wallet = w.create(payload)
expect(wallet).to be_correct_and_respond 201
expect(wallet['state']['status']).to eq 'syncing'

wid = wallet['id']
g = w.get(wid)
Expand Down Expand Up @@ -334,6 +337,7 @@

wallet = w.create(payload)
expect(wallet).to be_correct_and_respond 201
expect(wallet['state']['status']).to eq 'incomplete'

wid = wallet['id']
g = w.get(wid)
Expand Down

0 comments on commit a388e30

Please sign in to comment.