-
Notifications
You must be signed in to change notification settings - Fork 114
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
feat: integration tests setup #177
Draft
pcheremu
wants to merge
444
commits into
main
Choose a base branch
from
integration-tests-signed
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
444 commits
Select commit
Hold shift + click to select a range
0015f13
feat: return gasUsed, gasPerPubdata, maxFeePerGas and maxPriorityFeeP…
vasyl-ivanchuk 491f99a
feat: add transaction error and revert reason (#110)
Romsters 05ea503
fix: add sepolia staging hostname (#111)
vasyl-ivanchuk 5b8b417
chore: readme fixes (#113)
Romsters f0420a9
feat: show gas fields on UI (#114)
vasyl-ivanchuk e366f30
fix: api address contract endpoint to use creatorAddress field instea…
vasyl-ivanchuk bc75ffc
test: update tests for sepolia (#112)
pcheremu 93a290e
fix: ignore parse log errors (#116)
Romsters b1a3f01
feat: re-check tokens to save based on transfers after each block (#118)
Romsters 4abbdeb
fix: use liquidity tokens filter only on mainnet (#119)
vasyl-ivanchuk 2c43123
feat(debugger): add background color to instructions based on call co…
MexicanAce bfd3e4c
feat: integration tests setup (#45)
Romsters c96bdb2
test: add an .env.example file with description to integration-tests
pcheremu da270fc
test: adding a default action for hardhat
pcheremu c7d1ef9
test: fix path to env
pcheremu 89d813f
test: exclude file existence check
pcheremu e874c63
test: create a fallback case for a default wallet
pcheremu d0953f1
test: refactoring
pcheremu f28a726
test: restructure test solution
abilevych 558794a
test: the tokens API-related suite re-structuring
abilevych 2f3cbd9
test: the address API-related suite re-structuring
abilevych 73510cd
test: the transaction API-related suite re-structuring
abilevych 432eb84
chore: run lint
abilevych e82821c
test: re-structure test suites for batches, stats, blocks endpoints
abilevych 48dc19e
chore: group the SDK-related test suites as pre-requisites
abilevych d3c46e1
chore: hooks / aligning tests suites
abilevych 35dbdd9
chore: implemented a global hook for jest
abilevych 73d6afa
chore: local hooks for the addresses endpoint
abilevych 3c10056
chore: local hooks for the tokens endpoint
abilevych 234994c
chore: local hooks for the transaction endpoint
abilevych 54094b0
chore: add global hooks
abilevych 3c9dd96
chore: fix after lint
abilevych 09103da
chore: changed timeouts in addresses api suite
abilevych 861c212
chore: optimized addresses/transactions test suites
abilevych 9f521a5
test: test with a cache
pcheremu 4c8422b
test: test with a cleaned cache in advance
pcheremu 2d621d8
test: test with a cache
pcheremu 4c75f2e
test: refactoring
pcheremu c44a3c1
test: remove an issue workaround for husky
pcheremu 072a65c
test: covering Contract API and Logs API endpoints
amelnytskyi 5146686
test: covering Contract API and Logs API endpoints
amelnytskyi d871f4e
test: covering Contract API and Logs API endpoints
amelnytskyi 174a99b
chore: update the package-lock.json
abilevych 536a1e9
test: covering Contract API and Logs API endpoints
amelnytskyi aa49486
test: covering Contract API and Logs API endpoints
amelnytskyi aa3f20f
test: covering Contract API and Logs API endpoints
amelnytskyi 5888733
chore: update the package-lock.json
abilevych 7e898a2
test: fix test for an execution on a CI
abilevych 2453deb
Refactoring of app-e2e.yml
pcheremu 22cb049
Small refactoring artifactsSet3.feature
pcheremu f08ad77
test: prepare run api tests on ci
pcheremu ad97b4a
test: refactoring
pcheremu 84d5eb4
test: update name in integration-tests-api.yml
pcheremu b990fa0
test: initial commit with tests
pcheremu 98235e8
test: eslint refactoring
pcheremu d537d01
test: updated contract hash for ui test
pcheremu 518a037
test: refactoring
pcheremu 70b3ae5
test: refactoring
pcheremu 2ef98d3
test: fix unstable api test
pcheremu d89dac6
test: fix git ignore output folders
pcheremu e8036ea
test: refactoring
pcheremu 04cf38c
test: refactoring test name
pcheremu d458c83
test: refactoring test name
pcheremu 29a195a
tests: refactoring test names
pcheremu 81be306
test: refactoring eslint
pcheremu 0fabc5e
test: refactoring names
pcheremu e0c1469
test: fix api tests
pcheremu 8bae8a1
test: refactoring
pcheremu 534abb9
test: refactoring
pcheremu 3e707f8
test: refactoring
pcheremu fe83a3d
test: refactoring after rebase
pcheremu d4e2329
test: refactoring eslint
pcheremu f8def1b
test: fix test names add account test to the workflow
pcheremu 5b8527b
test: fix test names add account test to the workflow
pcheremu c50eb52
test: fix eslint
pcheremu d942650
test: fix redirection to documentation
pcheremu fcc1786
test: fix redirection to documentation
pcheremu 061b2a6
test: fix links
pcheremu a092687
test: refactoring
pcheremu 79f957c
test: fix portal url
pcheremu 3b15958
Update packages/integration-tests/tests/api/accounts.test.ts
pcheremu ad4a29c
chore: update the Blocks suite name
abilevych 6c2f3b4
test: fix names in tests
pcheremu 7266856
test: refactoring
pcheremu 5b7c757
chore: api retry logic for tests
abilevych eccc828
fix: lint issues
abilevych 0f6d373
chore: changed timeouts
abilevych 220f57c
chore: integration api tests refactoring
abilevych 3ba69b3
chore: excluded unstable test
abilevych 71aac3b
chore: jest retry option, fix lint
abilevych f083cab
chore: refactoring test actualization after rebase
abilevych d47f898
fix: lint issue
abilevych eba11e8
chore: exclude gating test
abilevych f494903
chore: excluded unstable tests
abilevych 0e2e2e8
chore: updated retry-logic for integration api tests
abilevych 0c18932
fix: integration api tests for the CI run
abilevych c5320fc
chore: refactoring leftovers in the test solution
abilevych 0b4e29b
chore: optimized integration API tests
abilevych 82341ce
chore: refactored jest config
abilevych 6aafa19
chore: refactoring test retry method
abilevych bba6b6c
test: covering tokens API endpoints tc1803 (#155)
amelnytskyi 0259377
test: fix readme docker command (#158)
pcheremu fde87c4
test: covering Batches API and partially covered Transactions (#156)
amelnytskyi 5a6fd69
feat: new automation tests for accounts API (#163)
olehbairak dd7a456
test: fixing gating transactions tests (#162)
amelnytskyi 8b68cd3
test: rebase integration tests to main (#167)
pcheremu cdef776
fix: update tokeninfo API description (#124)
Romsters 0aeb85f
feat: deprecate warning for goerli (#126)
vasyl-ivanchuk 467a359
fix: show issues banner on mainnet (tmp) (#128)
Romsters 6ef25c7
feat: add remote config for indexer (tmp) (#130)
Romsters 1f5cfdd
fix: header height when warning message is shown (#132)
vasyl-ivanchuk 2931487
fix: remove mainnet warning (#133)
vasyl-ivanchuk 072650f
fix: don't save tokens whose symbols contain only special characters …
vasyl-ivanchuk 1fb36ba
fix: don't do prefetch request for tx search (#135)
vasyl-ivanchuk 2b4e832
feat: use websockets to fetch transactions (tmp) (#136)
Romsters 658105b
fix: initialise websockets provider only when enabled (#137)
Romsters 4f4787b
fix: use websockets for balances (tmp) (#138)
Romsters 766bbbc
fix: add mainnet warning (tmp) (#139)
vasyl-ivanchuk 1f415fb
feat: use multiple db transactions for blocks processing, use websock…
Romsters a4f04ee
feat: automatic system alerts (#141)
Romsters 022881a
fix: tests for unit of work changes (#144)
Romsters c025fb1
chore: fix dev discussions link (#143)
dutterbutter 2dc7bf7
test: add allure public reports (#68)
pcheremu c088201
fix: docs links (#150)
vasyl-ivanchuk 2a4fb10
feat: add data fetcher service (#145)
vasyl-ivanchuk eadefc0
fix: remove portal from header (#159)
vasyl-ivanchuk 3bb8694
fix: add data fetcher debug logs (#165)
vasyl-ivanchuk b314bcb
test: fix a new line typos
pcheremu 2a040b8
test: remove a version from docker compose
pcheremu 8386066
test: roll back the version to the docker compose file
pcheremu 926e590
fix: remove docker version (#169)
vasyl-ivanchuk c549d97
fix: new one
olehbairak e80043f
Merge branch 'integration-tests' into integration-tests-signed
pcheremu 343cf89
test: refactoring to align changes
pcheremu d8d0a70
Update copying.feature
pcheremu e3aa291
fix: remove un contract playbook
olehbairak c054b5b
fix: new test integration
olehbairak 318c013
fix: new one
olehbairak 0281351
fix: new one
olehbairak 06bffb0
fix: remove duplicating test
olehbairak 36675b0
test: covering UI tests for Deposit
amelnytskyi 4735b11
fix: review feedback
olehbairak dd2c1b8
fix: new one
olehbairak a640ca9
test: refactor and actualise Transactions tests (#182)
amelnytskyi f6d9eed
Update packages/integration-tests/tests/ui/transactions.spec.ts
olehbairak f92572e
fix: new entity
olehbairak f3eb795
fix: new one
olehbairak ba073cd
fix: new one
olehbairak 6d23d22
fix: new one
olehbairak cdab5f2
fix: new one
olehbairak 018cc99
fix: new version
olehbairak fe053dc
fix: new one
olehbairak 40775b2
fix: new one
olehbairak dbf4411
fix: fix
olehbairak 382526d
fix: new one
olehbairak c5a86cf
fix: new one
olehbairak 4c0040a
fix: new approach to performGETrequest function
olehbairak 4babcac
test: covering UI tests for Deposit
amelnytskyi f628183
fix: new version of function
olehbairak 6b9943a
Merge pull request #185 from matter-labs/QA-543-cover-the-Deposit-tests
abilevych dd3af36
Update package.json
pcheremu 87e3104
Update package.json
pcheremu fae3657
Update packages/integration-tests/README.md
pcheremu 2f2d13f
Update packages/integration-tests/README.md
pcheremu b31711c
Update packages/integration-tests/src/entities.ts
pcheremu 410e491
Update packages/integration-tests/src/helper.ts
pcheremu 99a8933
Update packages/integration-tests/src/helper.ts
pcheremu 4790844
Update packages/integration-tests/src/entities.ts
pcheremu 4ed7c4f
Update packages/integration-tests/src/entities.ts
pcheremu 64cc6f2
test: fix names
pcheremu e2445ba
Merge branch 'integration-tests-signed' into oleh-bairak-qa-653-token…
olehbairak 7e43c46
test: fix names
pcheremu d03fe86
fix: new one
olehbairak 7fa1b56
Revert "Merge branch 'integration-tests-signed' into oleh-bairak-qa-6…
olehbairak a433dc9
test: fix names
pcheremu 78a146c
Revert "Revert "Merge branch 'integration-tests-signed' into oleh-bai…
olehbairak 1380443
test: update entities to constants name
pcheremu d589cc0
test: update enum Token names
pcheremu aa893c0
test: update executeScript function to exec() method
pcheremu 0ccaf8f
test: big change in path to set it constants and make them crossplatform
pcheremu 9ff2fd0
Merge branch 'integration-tests-signed' into oleh-bairak-qa-653-token…
olehbairak ac55ca4
fix: new version
olehbairak 4c350d0
fix: lint error fix
olehbairak b0a38a0
test: refactoring path and variables
pcheremu a82496a
test: refactoring path and variables
pcheremu 3aa7bd8
test: fix issues and refactor
pcheremu e4fb462
test: added providerCache for networks
pcheremu 25109d6
test: fix lint
pcheremu 572b272
test: updated names
pcheremu 18205f5
test: npm ci with audit
pcheremu 0fa8b72
Merge branch 'integration-tests-signed' into oleh-bairak-qa-653-token…
olehbairak 64323ef
test: create autotest for Accounts tc1854
amelnytskyi 4e86100
test: create autotest for Accounts tc1854
amelnytskyi 5dc6df0
test: create autotest for Accounts tc1854
amelnytskyi 14cb26f
test: create autotest for Accounts tc1854
amelnytskyi b2fd997
test: create autotest for Accounts tc1854
amelnytskyi bd1e328
Update helper.ts
olehbairak 1688bf6
fix: fix for wrong contract bytecode for UI E2E tests (#205)
olehbairak 986d8af
test: create autotests for Withdraw and Account test cases
amelnytskyi a6bf6af
test: create autotests for Withdraw test cases
amelnytskyi 6732d6d
test: create autotests for Withdraw test cases
amelnytskyi 834384b
fix: new one after rebase
olehbairak 5467a5e
fix: new contract for @id272 for contract bytecode check (#206)
olehbairak 4e4f6db
Merge branch 'integration-tests-signed' into oleh-bairak-qa-681-accou…
olehbairak 9beae69
fix: new one
olehbairak b182f33
fix: new assertion stile
olehbairak f1f1487
fix: new comments style
olehbairak d2c1356
fix: new fix
olehbairak 5537474
fix: new one
olehbairak 4f548fc
fix: new one
olehbairak 808c10d
fix: new one
olehbairak cc0f288
Merge branch 'integration-tests-signed' into QA-690-Create-automation…
amelnytskyi 745ce83
test: create autotests for Withdraw test cases
amelnytskyi 1ce2430
fix: type annotation
olehbairak f80e6e2
fix: new way
olehbairak 89b792b
fix: remove extra line
olehbairak d45f102
fix: better formatting
olehbairak 8a520a4
fix: element names
olehbairak f4442b2
Merge pull request #190 from matter-labs/QA-688-Withdrawal-BE-API-tes…
amelnytskyi 1fd5261
Merge pull request #191 from matter-labs/QA-690-Create-automation-tes…
amelnytskyi 1c6e8ce
Merge branch 'integration-tests-signed' into oleh-bairak-qa-653-token…
olehbairak 177bd6b
Update transactions.spec.ts
olehbairak 9ba81a6
Update transactions.spec.ts
olehbairak 6b780c9
test: create autotest for negative cases Contract API
amelnytskyi f39e293
fix: new variable name
olehbairak 21fbfb5
fix: new one
olehbairak 6487ac6
fix: new one
olehbairak 196e204
Update copying.feature
olehbairak 98f183d
fix: new one
olehbairak 8c45c44
Merge pull request #184 from matter-labs/oleh-bairak-qa-681-accounts-…
abilevych 26cf37a
Merge pull request #170 from matter-labs/oleh-bairak-qa-653-tokensapi…
olehbairak 0977d95
Merge branch 'integration-tests-signed' into QA-723-automate-contract…
amelnytskyi 06256a1
Merge pull request #211 from matter-labs/QA-723-automate-contract-API…
amelnytskyi 0cde2c2
Merge branch 'main' into integration-tests-signed
pcheremu 7b006b5
test: refactoring
pcheremu e92f3b3
test: refactoring
pcheremu 6595e5c
Merge branch 'integration-tests-signed' of github.com:matter-labs/blo…
pcheremu 3103946
test: back eslint cfg
pcheremu a3aa5c3
test: refactoring
pcheremu 97590a2
Merge branch 'main' into integration-tests-signed
pcheremu 93c8c6b
test: refactoring
pcheremu df1e10e
test: playwright test
pcheremu fa8b90c
test: postinstall
pcheremu 5b47348
test: postinstall
pcheremu 85e5adc
test: postinstall
pcheremu 18c742b
test: fix outdated packages
pcheremu 33670f3
Merge branch 'main' into integration-tests-signed
pcheremu d0ead53
test: fix outdated packages package-lock
pcheremu 1f76848
test: fix ether version
pcheremu 3dd0c6c
test: fix ethets
pcheremu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
**/dist/ | ||
**.env | ||
**.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Integration test - API | ||
on: pull_request | ||
|
||
jobs: | ||
runTests: | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
checks: write | ||
strategy: | ||
matrix: | ||
node-version: ['lts/*'] # 18.17.1 or lts/* | ||
test-pattern: | ||
- accounts.test.ts | ||
- addresses.test.ts | ||
- batches.test.ts | ||
- blocks.test.ts | ||
- contracts.test.ts | ||
- logs.test.ts | ||
- stats.test.ts | ||
- tokens.test.ts | ||
- transactions.test.ts | ||
name: 'API test set: ${{ matrix.test-pattern}} / Node: ${{ matrix.node-version}}' | ||
steps: | ||
- name: Checkout with Submodule | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: npm | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm ci | ||
npx playwright install --with-deps chromium | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Start docker containers | ||
run: | | ||
docker-compose -f "docker-compose.yaml" up -d --build | ||
- name: List running containers | ||
run: docker ps | ||
|
||
- name: API tests run (parallel) | ||
run: | | ||
cd packages/integration-tests | ||
npx jest --verbose --testPathPattern=${{ matrix.test-pattern }} | ||
- name: Stop containers | ||
if: always() | ||
run: | | ||
docker-compose -f "docker-compose.yaml" down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"editor.tabSize": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,4 +125,4 @@ volumes: | |
reth: | ||
postgres: | ||
zksync-config: | ||
zksync-data: | ||
zksync-data: |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is
playwright install
here? Should we move it to the installation script, maybe postinstall? Otherwise locally I'll have to do the same.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to use the post-install-based approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated