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

added more cs tests #1418

Merged
merged 43 commits into from
Dec 16, 2024
Merged

added more cs tests #1418

merged 43 commits into from
Dec 16, 2024

Conversation

cfaur09
Copy link
Contributor

@cfaur09 cfaur09 commented Dec 10, 2024

Reasoning

Proposed Changes

How to test

@cfaur09 cfaur09 self-assigned this Dec 10, 2024
@cfaur09 cfaur09 marked this pull request as draft December 10, 2024 12:14
@cfaur09 cfaur09 changed the title add CreateNFTEvent create /nfts cs tests Dec 10, 2024
@cfaur09 cfaur09 changed the title create /nfts cs tests create nfts.cs-e2e.ts Dec 10, 2024
- Removed `beforeAll` hooks that called `ChainSimulatorUtils.waitForEpoch(2)` from multiple e2e test files:
- This change simplifies the test setup and improves test execution time.
…seconds to ensure proper deployment of the PingPong smart contract.
- Implement tests for GET /tags, including validation of response structure, pagination, and search functionality.
- Add tests for GET /tags/count to verify the count of tags.
- Include tests for GET /tags/:tag to ensure correct tag details are returned.
- Enhance overall test coverage for the tags feature in the chain simulator.
- Implement tests for GET /collections/:collection/nfts to validate NFT retrieval, pagination, and filtering by various parameters (search term, identifiers, tags, creator, etc.).
- Add tests for GET /collections/:collection/nfts/count to verify NFT count based on different criteria.
- Moved the issuance of NFT collections to occur after funding the address and before issuing Meta-ESDT collections.
- This change improves the logical flow of the test data preparation process.
…arison

- Changed balance assertions from numeric comparison (expect(account.balance).toStrictEqual(1)) to string comparison (expect(account.balance).toStrictEqual("1")) in multiple test cases.
- This ensures consistency in data type handling for balance values across the tests.
…seconds to allow for additional processing time during test data preparation.
@cfaur09 cfaur09 marked this pull request as ready for review December 12, 2024 14:42
@cfaur09 cfaur09 changed the title create nfts.cs-e2e.ts added more cs tests Dec 12, 2024
}
});

it('should return transactions for a collection of type NFT with a specific hashes', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with a specific hashes -> with specific hashes

}
});

it('should return transfers for a collection of type NFT with a specific hashes', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with specific hashes

@@ -1545,4 +1528,461 @@ describe('Accounts e2e tests with chain simulator', () => {
expect(response.data).toStrictEqual(expectedCount);
});
});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would split this into shorter files.. they are to big to even look at them

@@ -149,4 +130,1185 @@ describe('Collections e2e tests with chain simulator', () => {
expect(response.data.collection).toBe(collection[0]);
});
});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would split this into files based on the routes

@cfaur09 cfaur09 merged commit 51c37da into feat/chain-simulator-e2e Dec 16, 2024
1 check passed
@cfaur09 cfaur09 deleted the API-226-nfts branch December 16, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants