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: rebase2 be tests #125

Merged
merged 53 commits into from
Dec 15, 2023
Merged

test: rebase2 be tests #125

merged 53 commits into from
Dec 15, 2023

Conversation

pcheremu
Copy link
Contributor

What ❔

rebase integration test branch to main

Why ❔

to keep up to date

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.

Romsters and others added 30 commits November 23, 2023 16:30
# What ❔

- validate bridge init log to be produced by bridge contract

## Why ❔

- if token is bridged outside of bridge it can't rely on provided token
l1 address
# What ❔

1. Remove new prover notification since it's not needed anymore.
2. Add Sepolia Testnet production configuration.

## Why ❔

We need a Sepolia block explorer production environment to eventually
use it as a main Testnet environment.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
# What ❔

- add coingecko tokens off-chain data provider

## Why ❔

- to support both L1 and L2 zksync tokens

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [+ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ +] Tests for the changes have been added / updated.
# What ❔

Hide Sepolia network on prod.

## Why ❔

We need to hold off on announcing Sepolia support in Block Explorer
until all other teams are ready to do this.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
# What ❔

Renamed tokens page title to "To tokens"

## Why ❔

We show only top tokens there, not all of them
…ches/blocks (#107)

# What ❔

Different _no transaction_ messages for non-existing and empty
batches/blocks:
Empty batch:
<img width="1259" alt="image"
src="https://github.com/matter-labs/block-explorer/assets/6553665/b3f8d9fc-dee8-4178-91c3-26eaff3be660">
Non-existing batch:
<img width="1263" alt="image"
src="https://github.com/matter-labs/block-explorer/assets/6553665/da083f5f-c887-41f0-9173-0c51064fca91">

## Why ❔

For better UX we want to show different _no transaction_ messages in
different cases:
`This Batch doesn’t have any transactions` - for empty batch,
`This Batch has not been created or sealed yet` - for non-existing
batch,
same for blocks.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
# What ❔

Enable sepolia network on prod.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
…erGas fields for transaction (#109)

# What ❔

Return `gasUsed`, `gasPerPubdata`, `maxFeePerGas` and
`maxPriorityFeePerGas` fields for transaction.

## Why ❔

For better UX we want to show gas and fee related fields on UI so we
need to return these fields from the API first.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
# What ❔

- fetch and store tx error and revert reason;
- return tx error and revert reason via API;
- display tx error on UI;

## Why ❔

- fast way to see what's the reason of transaction failure;

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

Sepolia staging hostname.

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
# What ❔

- remove $ from copy-pasteable commands
- add sepolia links
# What ❔

<img width="441" alt="image"
src="https://github.com/matter-labs/block-explorer/assets/6553665/b69c7a82-4f3a-4afa-abc5-8b7385a5079d">

## Why ❔

For better user experience it was requested to show gas fields and
limits on UI.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
…d of a separate call (#115)

# What ❔

Api contract endpoint to use `creatorAddress` field instead of a
separate DB call to fetch txReceipt.

## Why ❔

We don't need a DB call to fetch contract creator address.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
# What ❔

update ui tests for sepolia

## Why ❔

keep tests up to date

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

- show logs without parsed event if it fails.

## Why ❔

- currently it shows no logs at all if even one of many logs is failed
to parse.

This is a quick fix for now. The issue can be reproduced with proxy
contracts if there are some events emitted which are defined in the
implementation contract. To properly fix it we should use both proxy and
implementation ABI.
# What ❔

- Save tokens which affected balances after processing every block.

## Why ❔

- If token initially deployed didn't have all the required attributes we
need to try to save it again later.

## Checklist

- [+] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [+] Tests for the changes have been added / updated.
# What ❔

Use liquidity tokens filter only on mainnet.

## Why ❔

To show tokens without liquidity on testnets, local envs and
hyperchains.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
@pcheremu pcheremu added duplicate This issue or pull request already exists automation writing/fixing/maintaining auto-tests/e2e-tests labels Dec 14, 2023
@pcheremu pcheremu self-assigned this Dec 14, 2023
Copy link

github-actions bot commented Dec 14, 2023

API E2E Test Results

206 tests  ±0   206 ✔️ ±0   28s ⏱️ ±0s
  14 suites ±0       0 💤 ±0 
    1 files   ±0       0 ±0 

Results for commit ecea709. ± Comparison against base commit 7fe2e5a.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 14, 2023

Unit Test Results

       3 files  ±  0     247 suites  +3   8m 50s ⏱️ +23s
1 970 tests +51  1 969 ✔️ +51  1 💤 ±0  0 ±0 
1 996 runs  +51  1 995 ✔️ +51  1 💤 ±0  0 ±0 

Results for commit ecea709. ± Comparison against base commit 7fe2e5a.

♻️ This comment has been updated with latest results.

@pcheremu pcheremu removed the duplicate This issue or pull request already exists label Dec 14, 2023
Copy link

github-actions bot commented Dec 14, 2023

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

(expires Thu, 21 Dec 2023 13:26:41 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e508f9012944951194447cb8885950b451a24403

@abilevych abilevych merged commit 7d93728 into integration-tests Dec 15, 2023
26 checks passed
@abilevych abilevych deleted the QA-573-rebase2-be-tests branch December 15, 2023 10:49
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.

6 participants