Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Use sandbox for SDK Testing and remove Indexer v1 steps #623

Merged
merged 12 commits into from
Aug 22, 2022
47 changes: 0 additions & 47 deletions tests/cucumber/steps/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,40 +608,6 @@ module.exports = function getSteps(options) {
return this.acl.ledgerSupply();
});

Then('I get transactions by address and round', async function () {
const lastRound = await this.acl.status();
const transactions = await this.acl.transactionByAddress(
this.accounts[0],
1,
lastRound.lastRound
);
assert.deepStrictEqual(
true,
Object.entries(transactions).length === 0 ||
'transactions' in transactions
);
});

Then('I get transactions by address only', async function () {
const transactions = await this.acl.transactionByAddress(this.accounts[0]);
assert.deepStrictEqual(
true,
Object.entries(transactions).length === 0 ||
'transactions' in transactions
);
});

Then('I get transactions by address and date', async function () {
const transactions = await this.acl.transactionByAddressAndDate(
this.accounts[0]
);
assert.deepStrictEqual(
true,
Object.entries(transactions).length === 0 ||
'transactions' in transactions
);
});

Then('I get pending transactions', async function () {
const transactions = await this.acl.pendingTransactions(10);
assert.deepStrictEqual(
Expand Down Expand Up @@ -885,12 +851,6 @@ module.exports = function getSteps(options) {
// assert.deepStrictEqual(true, 'type' in info);
});

Then('I can get the transaction by ID', async function () {
await waitForAlgodInDevMode();
const info = await this.acl.transactionById(this.txid);
assert.deepStrictEqual(true, 'type' in info);
});

Then('the transaction should not go through', function () {
assert.deepStrictEqual(true, this.err);
});
Expand Down Expand Up @@ -1117,13 +1077,6 @@ module.exports = function getSteps(options) {
}
);

When(
'I get recent transactions, limited by {int} transactions',
function (int) {
this.acl.transactionByAddress(this.accounts[0], parseInt(int));
}
);

/// /////////////////////////////////
// begin asset tests
/// /////////////////////////////////
Expand Down