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

test: automation tests for Transactions + Withdrawal API #188

Conversation

olehbairak
Copy link
Contributor

@olehbairak olehbairak commented Feb 26, 2024

What ❔

Increase automation coverage with next test cases:

Transactions: -> DONE ✅

https://allure.matterlabs.dev/project/11/test-cases/1509

https://allure.matterlabs.dev/project/11/test-cases/1452

Withdrawal API: -DONE ✅

https://allure.matterlabs.dev/project/11/test-cases/1459

https://allure.matterlabs.dev/project/11/test-cases/1460

https://allure.matterlabs.dev/project/11/test-cases/1461

Why ❔

Extend automation test coverage with new areas of coverage.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

@olehbairak olehbairak added the automation writing/fixing/maintaining auto-tests/e2e-tests label Feb 26, 2024
@olehbairak olehbairak self-assigned this Feb 26, 2024
Copy link

github-actions bot commented Feb 26, 2024

API E2E Test Results

206 tests  ±0   206 ✅ ±0   27s ⏱️ -2s
 14 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 5be1de1. ± Comparison against base commit a640ca9.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Feb 26, 2024

Visit the preview URL for this PR (updated for commit 5be1de1):

(expires Fri, 08 Mar 2024 11:03:39 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e508f9012944951194447cb8885950b451a24403

Copy link

github-actions bot commented Feb 26, 2024

Unit Test Results

    4 files  ±0    263 suites  ±0   13m 39s ⏱️ +26s
2 079 tests ±0  2 078 ✅ ±0  1 💤 ±0  0 ❌ ±0 
2 284 runs  ±0  2 283 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit 5be1de1. ± Comparison against base commit a640ca9.

♻️ This comment has been updated with latest results.

@olehbairak olehbairak marked this pull request as ready for review February 26, 2024 11:48
@@ -49,6 +49,8 @@ export enum Token {
ETHER_PULL_Address = "0x0000000000000000000000000000000000008001",
ETHER_Address = "0x0000000000000000000000000000000000000000",
ETHER_ERC20_Address = "0x000000000000000000000000000000000000800A",
tokenTypeERC20 = "ERC20",
tokenTypeETH = "ETH",
Copy link
Contributor

Choose a reason for hiding this comment

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

that is good that you have decided to move it separately, but then you have to align all tests:
image
I would also suggest to simplify the name:

ERC20_Name = "ERC20",
ETH_Name = "ETH",

@@ -86,25 +97,33 @@ describe("Transactions", () => {
apiRoute = `/transactions/${txHash}/transfers`;
response = await helper.performGETrequest(apiRoute);

console.log(response.body);
Copy link
Contributor

Choose a reason for hiding this comment

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

do we really need it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

@pcheremu pcheremu left a comment

Choose a reason for hiding this comment

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

Oleh, please add several changes.

@olehbairak
Copy link
Contributor Author

@pcheremu closing this PR due to the fact, that these fixes were already present in integration-test-signed branch.
After rebase - no changes left.

@olehbairak olehbairak closed this Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation writing/fixing/maintaining auto-tests/e2e-tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants