new SDK tests #1159
This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / E2E report yarn test-sdk
succeeded
Sep 29, 2023 in 1s
E2E report yarn test-sdk ✔️
✔️ e2eTests/reports/junit-49ab7940-5eda-11ee-8615-8f4fabd7fcef.xml
58 tests were completed in 1328s with 49 passed, 0 failed and 9 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test/parallel/sdk.API.batch.test.ts | 7✔️ | 703s | ||
test/parallel/sdk.API.getInfo.test.ts | 16✔️ | 271s | ||
test/parallel/sdk.API.submitableExtrinsic.test.ts | 9✔️ | 703s | ||
test/parallel/sdk.API.utils.test.ts | 8✔️ | 991s | ||
test/parallel/xyk-sdk.API.activateLiqudity.test.ts | 2✔️ | 571s | ||
test/sequential/sdk.API.claimRewards.test.ts | 7✔️ | 1327s | ||
test/sequential/xyk-SDK.nonce.test.ts | 7✖️ | 9s | ||
test/xcm/skip.SDK.imbue.transfer.test.ts | 2✖️ | 9s |
✔️ test/parallel/sdk.API.batch.test.ts
✔️ Check that when we are using SDK batch function and the first call finishes with error next call doesn't finish
✔️ Check that when we are using SDK batch function and the second call finishes with error first call finishes successful
✔️ Happy path - batch
✔️ WHEN call batchAll where one item is failed THEN all entire transactions will rollback and fail
✔️ Happy path - batchAll
✔️ WHEN call forceBatch where one item is failed THEN check completed and failed items
✔️ Happy path - forceBatch
✔️ test/parallel/sdk.API.getInfo.test.ts
✔️ getAmountOfTokensInPool return poolAmount AND in reverse list of token we recived equal result
✔️ check parameters of getInvestedPools function
✔️ check parameters of getLiquidityTokenIds function
✔️ check parameters of getPool function
✔️ check parameters of getPools function
✔️ check parameters of getTotalIssuance functions
✔️ check parameters of getChain function
✔️ check parameters of getNodeName function
✔️ check parameters of getNodeVersion function
✔️ check waitForNewBlock
✔️ check calculateMintingFutureRewards
✔️ check getAssetsInfo
✔️ check getLiquidityTokens
✔️ check getOwnedTokens
✔️ check getTokenInfo
✔️ check RPC
✔️ test/parallel/sdk.API.submitableExtrinsic.test.ts
✔️ activate some Liquidity using SDK THEN claim rewards THEN deactivate Liquidity
✔️ check claimRewards
✔️ check mintLiquidity
✔️ check burnLiquidity
✔️ check createPool
✔️ check multiswapBuyAsset
✔️ check multiswapSellAsset
✔️ check transferTokens
✔️ check transferAllTokens
✔️ test/parallel/sdk.API.utils.test.ts
✔️ GIVEN buyAsset WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
✔️ GIVEN buyAsset WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
✔️ GIVEN sellAsset WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
✔️ GIVEN sellAsset WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
✔️ GIVEN multiSwapBuy WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
✔️ GIVEN multiSwapBuy WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
✔️ GIVEN multiSwapSell WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
✔️ GIVEN multiSwapSell WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
✔️ test/parallel/xyk-sdk.API.activateLiqudity.test.ts
✔️ Given a user hame some liquidity token THEN he activate them THEN deactivate
✔️ Activate liquidity and claim rewards
✔️ test/sequential/sdk.API.claimRewards.test.ts
✔️ GIVEN an user has available some rewards in one pool WHEN claims all rewards THEN the user gets the rewards for that pool
✔️ GIVEN an user has available some rewards in two pools WHEN claims all rewards THEN the user gets the rewards for thats pools
✔️ GIVEN an user has available some rewards in two pools one deactivated WHEN claims all rewards THEN the user gets the rewards for thats pools
✔️ GIVEN an user has available some rewards in two “pools” one solo token, one pool WHEN claims all rewards THEN the user gets the rewards for thats pools
✔️ GIVEN a user that has available some rewards in ten pools max for automatically claiming WHEN claims all rewards THEN the user gets the rewards for thats pools
✔️ GIVEN a user has available some rewards in over ten pools WHEN claims all rewards THEN the error is received
✔️ GIVEN a user has available some rewards in over ten pools AND this user claims some pool manually WHEN claims all rewards THEN the user gets the rewards for all remaining pools
✔️ test/sequential/xyk-SDK.nonce.test.ts
SDK test - Nonce tests - user
✖️ SDK- Nonce management - user
✖️ SDK- Nonce management - user - parallel
✖️ SDK- Nonce management - user - future Tx-
✖️ SDK- Nonce management - Extrinsic failed
✖️ SDK- Nonce management - Using custom nonce
✖️ [BUG?] SDK- Nonce management - Transaction outdated
SDK test - Nonce tests - Errors
✖️ [BUG?] SDK- Nonce management - RPC Failure - Not enough balance
✔️ test/xcm/skip.SDK.imbue.transfer.test.ts
XCM tests for Mangata <-> imbue
✖️ SDK ROC - mangata transfer assets to imbue
✖️ SDK ROC - imbue transfer assets to mangata
Loading