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: fixing gating transactions tests #162

Merged
merged 5 commits into from
Feb 7, 2024

Conversation

amelnytskyi
Copy link
Contributor

What ❔

Fixed disabled (xdescribe and xit) /transactions/{transactionHash}/transfers tests and turned them on back

Why ❔

/transactions/{transactionHash}/transfers tests were disabled since they were outdated

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.

Fixed disabled /transactions/{transactionHash}/transfers tests and turned them on back
@amelnytskyi amelnytskyi added the automation writing/fixing/maintaining auto-tests/e2e-tests label Feb 1, 2024
@amelnytskyi amelnytskyi self-assigned this Feb 1, 2024
Copy link

github-actions bot commented Feb 1, 2024

API E2E Test Results

206 tests   206 ✅  28s ⏱️
 14 suites    0 💤
  1 files      0 ❌

Results for commit 1a32c11.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Feb 1, 2024

Visit the preview URL for this PR (updated for commit 1a32c11):

(expires Tue, 13 Feb 2024 14:05:02 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e508f9012944951194447cb8885950b451a24403

Copy link

github-actions bot commented Feb 1, 2024

Unit Test Results

    3 files    247 suites   8m 38s ⏱️
1 970 tests 1 969 ✅ 1 💤 0 ❌
1 996 runs  1 995 ✅ 1 💤 0 ❌

Results for commit 1a32c11.

♻️ This comment has been updated with latest results.

Fixed failing test id1506 "Verify the transaction via /transactions"
@amelnytskyi amelnytskyi requested a review from pcheremu February 1, 2024 15:57
@@ -381,7 +462,20 @@ describe("Transactions", () => {
);
Copy link
Contributor

@pcheremu pcheremu Feb 7, 2024

Choose a reason for hiding this comment

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

Probably some fields missed?

"items": [
{
"from": "0x3c0FD3279c2b714141aa731519b68Bd428454073",
"to": "0x0000000000000000000000000000000000008001",
"blockNumber": 16511607,
"transactionHash": "0xbe1334c29408d1fe90a810fbda46da059f18cef033bfb08d75050c531b5c789e",
"timestamp": "2024-02-06T10:44:38.831Z",
"amount": "1503311400000000",
"tokenAddress": "0x000000000000000000000000000000000000800A",
"type": "fee",
"tokenType": "ETH",
"fields": null,
"isInternal": false,
"token": {
"l2Address": "0x000000000000000000000000000000000000800A",
"l1Address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"name": "Ether",
"decimals": 18,
"usdPrice": 2294.85,
"liquidity": 275206159445,
"iconURL": "https://assets.coingecko.com/coins/images/279/large/ethereum.png?1696501628"
}
},

https://block-explorer-api.testnets.zksync.dev/transactions/0xbe1334c29408d1fe90a810fbda46da059f18cef033bfb08d75050c531b5c789e/transfers

Copy link
Contributor

Choose a reason for hiding this comment

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

please create a task to refactor tx tests in the next PR

usdPrice: 1800,
},
})
);
});
});

Copy link
Contributor

Choose a reason for hiding this comment

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

on 534, do we need a token and blocknumber data?

Copy link
Contributor

Choose a reason for hiding this comment

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

please create a task to refactor tx tests in the next PR

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.

Fixes itself looks good, I just see that some tests outdated or some fields are missed. It will be good to keep them up-to date together with its fixes. AFAK it is not necessary to be so detailed for items [1] or [2] but we have a full list of items for the item [0] if any.

@pcheremu pcheremu merged commit d8daa3d into integration-tests Feb 7, 2024
35 checks passed
@pcheremu pcheremu deleted the QA-612-fix-disabled-transaction-tests branch February 7, 2024 10:59
pcheremu pushed a commit that referenced this pull request Feb 9, 2024
# What ❔

Fixed disabled (xdescribe and xit)
/transactions/{transactionHash}/transfers tests and turned them on back

## Why ❔

/transactions/{transactionHash}/transfers tests were disabled since they
were outdated

## 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.
pcheremu pushed a commit that referenced this pull request Feb 9, 2024
# What ❔

Fixed disabled (xdescribe and xit)
/transactions/{transactionHash}/transfers tests and turned them on back

## Why ❔

/transactions/{transactionHash}/transfers tests were disabled since they
were outdated

## 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.
pcheremu pushed a commit that referenced this pull request Feb 15, 2024
# What ❔

Fixed disabled (xdescribe and xit)
/transactions/{transactionHash}/transfers tests and turned them on back

## Why ❔

/transactions/{transactionHash}/transfers tests were disabled since they
were outdated

## 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.
pcheremu pushed a commit that referenced this pull request Jul 5, 2024
# What ❔

Fixed disabled (xdescribe and xit)
/transactions/{transactionHash}/transfers tests and turned them on back

## Why ❔

/transactions/{transactionHash}/transfers tests were disabled since they
were outdated

## 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.
pcheremu pushed a commit that referenced this pull request Aug 22, 2024
# What ❔

Fixed disabled (xdescribe and xit)
/transactions/{transactionHash}/transfers tests and turned them on back

## Why ❔

/transactions/{transactionHash}/transfers tests were disabled since they
were outdated

## 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.
pcheremu pushed a commit that referenced this pull request Aug 22, 2024
# What ❔

Fixed disabled (xdescribe and xit)
/transactions/{transactionHash}/transfers tests and turned them on back

## Why ❔

/transactions/{transactionHash}/transfers tests were disabled since they
were outdated

## 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.
pcheremu pushed a commit that referenced this pull request Aug 23, 2024
# What ❔

Fixed disabled (xdescribe and xit)
/transactions/{transactionHash}/transfers tests and turned them on back

## Why ❔

/transactions/{transactionHash}/transfers tests were disabled since they
were outdated

## 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.
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