Skip to content

Commit

Permalink
Update e2e tests for NFT retrieval to use NFT names instead of identi…
Browse files Browse the repository at this point in the history
…fiers in API requests
  • Loading branch information
cfaur09 committed Dec 16, 2024
1 parent 58fae71 commit 6a2070a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/chain-simulator/accounts.cs-e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1759,7 +1759,7 @@ describe('Accounts e2e tests with chain simulator', () => {
const accountNfts = await axios.get(`${config.apiServiceUrl}/accounts/${config.aliceAddress}/nfts?size=1&type=${NftType.NonFungibleESDT}`);
const nft = accountNfts.data[0];

const response = await axios.get(`${config.apiServiceUrl}/accounts/${config.aliceAddress}/nfts/count?search=${nft.identifier}`);
const response = await axios.get(`${config.apiServiceUrl}/accounts/${config.aliceAddress}/nfts/count?search=${nft.name}`);
expect(response.status).toBe(200);
expect(response.data).toBeGreaterThanOrEqual(1);
});
Expand Down Expand Up @@ -1851,7 +1851,7 @@ describe('Accounts e2e tests with chain simulator', () => {
const accountNfts = await axios.get(`${config.apiServiceUrl}/accounts/${config.aliceAddress}/nfts?size=2&type=${NftType.NonFungibleESDT}`);
const nft = accountNfts.data[0];

const response = await axios.get(`${config.apiServiceUrl}/accounts/${config.aliceAddress}/nfts/c?search=${nft.identifier}`);
const response = await axios.get(`${config.apiServiceUrl}/accounts/${config.aliceAddress}/nfts/c?search=${nft.name}`);
expect(response.status).toBe(200);
expect(response.data).toBeGreaterThanOrEqual(1);
});
Expand Down

0 comments on commit 6a2070a

Please sign in to comment.