Skip to content

Commit

Permalink
see if auctioneer175 exists after different contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Sep 19, 2024
1 parent 2c72dcf commit 0abee64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions test/e2e/specs/liquidation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ describe('Wallet App Test Cases', () => {
});

context('Creating vaults and changing ATOM price', () => {
it('should pause the old auctioneer', () => {
cy.pauseOldAuctioneer();
});
it(
'should connect with the wallet',
{
Expand Down Expand Up @@ -380,6 +383,10 @@ describe('Wallet App Test Cases', () => {
});

context('Place bids and make all vaults enter liquidation', () => {
it('should pause the old auctioneer', () => {
cy.pauseOldAuctioneer();
});

it('should create a vault minting 400 ISTs and giving 80 ATOMs as collateral', () => {
cy.skipWhen(AGORIC_NET !== networks.LOCAL);
cy.createVault({ wantMinted: 400, giveCollateral: 80, userKey: 'gov1' });
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ Cypress.Commands.add('pauseOldAuctioneer', () => {
agopsOpts,
).then(({ stdout }) => {
const offerSpec = JSON.parse(stdout);
cy.expect(offerSpec.slots[0]).to.equal(auctioneer.getSlot());
cy.task('info', `offerSpec is: ${JSON.stringify(offerSpec)}`);
// cy.expect(offerSpec.slots[0]).to.equal(auctioneer.getSlot());
offerSpec.slots[0] = oldAuctioneer.getSlot();
cy.writeFile(changeFile, JSON.stringify(offerSpec), 'utf8');

Expand Down

0 comments on commit 0abee64

Please sign in to comment.