eddie
e0a531e538
fix: type error in cypress infra ( #6700 )
2023-06-07 18:16:57 -07:00
Zach Pomerantz
0b66fde26c
fix: only remove expired transactions from updater ( #6625 )
...
* test(e2e): disable video compression
* refactor: improve popupList impl/test
* test(e2e): log JSON-RPC calls
* fix: retry backoff logic
* test(e2e): wait for hardhat/popup assertions
* fix: remove transactions after expired
* test(e2e): re-enable other swap tests
Co-authored-by: Jordan Frankfurt <jordanwfrankfurt@gmail.com>
* chore: rm console.log
* fix: expire txs after 6h
* refactor: dry trade info
* test(e2e): use default deadline
---------
Co-authored-by: Jordan Frankfurt <jordanwfrankfurt@gmail.com>
2023-06-07 09:29:23 -07:00
Zach Pomerantz
38d9ab67eb
test(e2e): token details and test cleanup ( #6516 )
...
* test(e2e): split e2e commands/setup
* test(e2e): consolidate tests
* test(e2e): simplify
* test(e2e): mv token details tests to appropriate spec
* test(e2e): rm obsolete constant
* test(e2e): comments
* test(e2e): do not wait for animations
2023-05-09 10:33:55 -07:00
Zach Pomerantz
f0d8f8b23b
test(e2e): mock uniswap token lists from ipfs ( #6511 )
...
* test(e2e): mock uniswap token lists from ipfs
* test(e2e): correctly intercept
2023-05-08 15:04:02 -07:00
Zach Pomerantz
2a50d6a17e
test(e2e): reset hardhat between tests ( #6487 )
2023-05-04 08:31:53 -07:00
Jordan Frankfurt
7a1a476e45
fix: spoof origin and referer ( #6468 )
...
* fix: spoof origin and referer
* comments, chaining, and an accurate replication of amplitude response bodies
2023-04-28 17:29:16 -05:00
Zach Pomerantz
3b1ef8033b
test: upgrade cypress-hardhat ( #6462 )
2023-04-28 08:46:42 -07:00
Zach Pomerantz
01684977b3
test: add a 'hardhat' mock window.ethereum ( #6395 )
2023-04-25 14:24:57 -07:00
Zach Pomerantz
58417412f1
build: tighten tsconfig (to include build cache, exclude watch folders) ( #6375 )
...
* build: extend cypress tsconfig from build tsconfig
* build: exclude node_modules from watch to improve typechecking perf
* fix: even tighter tsconfigs
* fix: even tighter
* fix: tailor cypress tsconfig to testing
* fix: split them up again
* fix: pr comments
2023-04-24 16:00:04 -07:00
eddie
35dace7bfe
feat: cypress test coverage reporting ( #6212 )
...
* wip
* fix: only instrument thru babel in test and dev
* fix: remove unused deps
* fix: yarn dedup
* fix: remove nyc_output dir from git
* fix: remove comment from index.html
2023-03-27 09:48:02 -07:00
eddie
b026db3db3
test: fix url param in tests ( #6072 )
2023-03-06 10:14:26 -08:00
Vignesh Mohankumar
79ad611e79
fix: remove $ in hexlified string ( #6075 )
...
* fix
* Update cypress/support/ethereum.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-03-03 20:09:36 -05:00
Vignesh Mohankumar
dcb660d052
refactor: variable for goerli in test ( #6066 )
2023-03-03 17:45:06 -05:00
eddie
ef388e17d5
test: e2e tsts for goerli ( #6063 )
...
* fix: e2e tsts for goerli
* fix: test
2023-03-03 14:20:41 -05:00
eddie
95eafbab7d
fix: wait for page to load in e2e tests ( #5983 )
...
* fix: make FoR announcement click optional in e2e tests
* fix: optional chaining
* fix: build error
* fix: wait for page to load
2023-02-15 13:55:35 -08:00
Mike Grabowski
1802f50163
chore: use @uniswap eslint preset ( #5556 )
...
* feat: replace eslint with preset
* chore: update
* add empty line
* Revert changes
* chore: replace colors
* chore: tweaks
* Revert "chore: replace colors"
This reverts commit 3462420ecbdd9c5275a895643dad1586e92226a0.
* bring lint back
* chore: tweaks
* chore: add note
* chore: fix yarn lock
* chore: fix yarn.lock 2
* chore: use ESLint from npm
* Chore: update lockfile
* tweaks
* chore: initial take fixing some lint issues
* tweaks
* chore: another take
* chore: further tweaks
* chore: fix further
* feat: ignore Jest for cypress
* revert change
* chore: update to latest preset
* tmp lets see if this works
* chore: turn error into warning
* chore: remove warnings
* chore: deduplicate yarn lock
* feat: add recommended ESLint extension in case someone has Prettier instead
* upgrade to latest uniswap config
* chore: update todo
* remove patch
* find to some
* name
* chore: tweak yarn lock
* update
* cleanup
* update name for filter
* nl
* no unsafe finally
* chore: update doc
* fix
* fix
* one more fix
* one more file
* chore: Fix two last build issues
* add generated back
* fix lint after merge
* chore: fix tests
* remove
* one more
2022-12-21 03:08:20 +04:00
Vignesh Mohankumar
a286e5b114
test: disable fiat announcement on cypress tests ( #5751 )
...
* test: disable fiat announcement on cypress tests
* Revert "test: skip tests due to fiat on-ramp change (#5742 )"
This reverts commit 283479f76e78b99afb6ef0cce699fd16b460b9b1.
* dismissed
2022-12-20 15:36:57 -05:00
Vignesh Mohankumar
28b154ebe8
chore: remove landing redirect flag ( #5736 )
...
* test: add tests for landing redirect
* test: add tests for landing page (#5737 )
* test: add tests for landing page
* lint
* intro=true
* rm downloads?
* fix: use second config option for no wallet in cypress
Co-authored-by: Eddie Dugan <eddie.dugan@uniswap.org>
Co-authored-by: Eddie Dugan <eddie.dugan@uniswap.org>
2022-12-20 14:54:56 -05:00
aballerr
d658720505
chore: initial set of cypress tests for nft ( #5590 )
...
* initial set of cypress tests for nft
2022-12-13 11:43:02 -05:00
Vignesh Mohankumar
1a6fe3c1a8
chore: remove more unused exports ( #5515 )
...
* chore: remove more unused exports
* remove surveypopup
* rm NewMenu
2022-12-02 16:44:07 -05:00
Zach Pomerantz
0017e2fcc8
test: use goerli ( #4826 )
...
* test: use goerli
* test: skip rinkeby-specific tests
* revert: retain arbitrum rinkeby
2022-10-06 15:16:58 -05:00
Zach Pomerantz
fb389137e7
feat: adds ethers provider tracing ( #4614 )
2022-09-13 09:07:47 -07:00
aballerr
1221d88e13
chore: Cypress utility function for selecting feature flags and walletdrop down cypress tests ( #4536 )
...
* Adding feature flag utility to cypress and adding wallet cypress tests
Co-authored-by: Alex Ball <alexball@UNISWAP-MAC-038.local>
2022-09-09 14:54:54 -04:00
Vignesh Mohankumar
f349ecdd3c
chore: remove selectedWalletBackfilled ( #4283 )
...
* remove selectedWalletBackfilled
* FIX
2022-08-15 15:39:16 -07:00
Vignesh Mohankumar
f596293b6c
build: don't fail cypress on unhandled exception ( #4122 )
2022-07-18 09:46:31 -04:00
Zach Pomerantz
c16e49e774
feat: service worker with etag cache ( #3897 )
...
* fix: always-fresh service worker cache
* chore: clarify service-worker
* fix: cache in CacheStorage
* feat: set __isDocumentCached
* add back in manifest precaching
* add unit tests (incomplete)
* test: simplify test env
* test: add service-worker cypress test
* test: service-worker document handler
* fix: CachedDocument ctor
* fix: Readable for ReadableStream in jest
* build: clean up module loading
* fix: rename commands->ethereum
* build: simplify package.json deps
* build: clean up cypress usage
* build: clean up yarn.lock
* build: record cypress runs
* build: disable chromeWebSecurity in cypress tests
* build: rm babel
* build: disable sw in ci cypress
* build: nits
* build: update workbox version
* chore: fix merge
* test: cache
* test: cypress-ify the before hook
* test: clear sw before each test
* fix: cy then
* test: cypress shenanigans
* style: lint
* chore: rm todo
* test: fail fast for service worker with dev builds
* docs: update contributing to tests
* fix: clean up tests after merge
- Add fast fail in case of dev server, which lacks ServiceWorker
* fix: inject ethereum
* test: service worker
* test: increase sw timeout
* test: sw state
* test: run cypress in chrome
* feat: add on-demand caching to improve sw startup time
* test: test dynamically
* fix: simplify cached doc
* fix: optional sw
* fix: expose response on cached doc
* fix: stub out sw req
* fix: intercept
Co-authored-by: Christine Legge <christine.legge@uniswap.org>
2022-06-14 15:40:52 -04:00
Zach Pomerantz
48f8c6a141
test: update cypress ( #3908 )
...
* test: update cypress
* chore: comment on infura origin
* test: split build and serve
* chore: rm setupNodeEvents
2022-06-13 17:43:58 -04:00
Zach Pomerantz
22136b2708
build: clean up module loading ( #3898 )
...
* build: clean up module loading
* fix: rename commands->ethereum
* build: simplify package.json deps
* build: clean up cypress usage
* build: clean up yarn.lock
* build: record cypress runs
* build: disable chromeWebSecurity in cypress tests
* build: rm babel
* build: disable sw in ci cypress
* build: use dev env for e2e
* build: reenable web security
2022-06-09 14:39:38 -04:00
Zach Pomerantz
711b2ca85c
chore: import @ethersprojects directly ( #3104 )
...
* Revert "chore: import from ethers"
This reverts commit 6d9c0855d261679c316307ea3f668869c90e63a2.
* Revert "fix: use provider JsonRpcProvider"
This reverts commit dcbbab5e4d6458a11c38582388a7cb5b12691188.
* chore: depend on @ethersprojects directly
2022-01-12 10:06:22 -08:00
Zach Pomerantz
27412e49d5
chore: import from ethers ( #3094 )
...
* chore: rm lodash
* chore: improve styled-components lint
* chore: import from ethers
* fix: use provider JsonRpcProvider
2022-01-11 11:32:20 -08:00
Zach Pomerantz
e81e8a8f71
fix: inadvertent merges/reverts ( #2915 )
...
* Revert "Revert "Merge branch 'main' of https://github.com/Uniswap/interface " (#2912 )"
This reverts commit 7d343dcfbdf75a2f91d28cefce84e4b1bace7b87.
* Revert "deleted files"
This reverts commit 097b8361d4c09afd3cb681c4622145c555ced884.
2021-12-02 10:35:39 -08:00
Justin Domingue
7d343dcfbd
Revert "Merge branch 'main' of https://github.com/Uniswap/interface " ( #2912 )
...
This reverts commit bf7a40be7a0a37b5051b9a877bbea563fba5782d, reversing
changes made to 097b8361d4c09afd3cb681c4622145c555ced884.
2021-12-02 13:12:22 -05:00
Moody Salem
745be977ef
fix(lint): clean up the eslint config ( #2886 )
...
* fix(lint): clean up the eslint config
* Fix code style issues with ESLint
* fix the linter errors that arose from using the proper config
* clean up the rebass text renames
* fix if statement, use the config
* use the same name prefix for both steps
* `TextPreset` -> `ThemedText`
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
2021-11-30 15:20:59 -05:00
Moody Salem
53da48b646
refactor: add an import sorting plugin ( #2417 )
...
* refactor: add an import sorting plugin
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
2021-09-21 18:21:28 -05:00
Jordan Frankfurt
1b27d8dab0
test integration key change ( #1864 )
2021-06-15 21:04:54 -04:00
Moody Salem
e13369154d
Merge branch 'main' into v3-main
...
# Conflicts:
# .github/workflows/tests.yaml
2021-04-21 12:37:20 -05:00
Moody Salem
77b640c41b
chore(tests): improve the CI ( #1370 )
...
* improve the CI
* change triggers
* add pull request target back
2021-04-21 12:35:49 -05:00
Moody Salem
6be54afd12
fix the integration test errors from upgrading ethers
2021-04-21 11:19:34 -05:00
Lint Action
9d9b57dd4c
Fix code style issues with ESLint
2021-02-16 08:46:17 +00:00
Jordan Frankfurt
6965707d45
Revert "upgrade prettier"
...
This reverts commit 5fabe438e52d4844307f86577d1d13a2e571e5f5.
2021-02-16 03:26:53 -05:00
Lint Action
b630d59437
Fix code style issues with ESLint
2021-02-15 17:01:46 +00:00
Moody Salem
610b7f4464
make integration tests pass more reliably, some reducer refactoring
2020-08-27 10:21:51 -05:00
Moody Salem
3272f8e9db
chore(infura): rotate keys (complete)
2020-07-21 11:07:10 -05:00
Moody Salem
3277d70e93
fix all tests
2020-06-30 14:02:09 -04:00
Ian Lapham
0004db3d4a
Style updates, Approve UI updates ( #841 )
...
improvements(approvals): match approve flow to add/remove, update UI styles
2020-06-05 13:20:47 -04:00
Moody Salem
c9721c42bf
perf(reduce call volume): save a bunch of calls to infura when the tab is not focused, change infura IDs for v2
2020-05-26 13:36:09 -04:00
Moody Salem
822f9e5fe2
Connect integration tests ( #757 )
...
* Connect a testing wallet
* Replace with a funded address
* Fix the balance checking and adding logging
2020-05-13 08:29:54 -04:00
Moody Salem
3b3f281319
Use eslint/prettier for typescript files
2020-05-08 14:50:27 -04:00
Moody Salem
28b24036c6
Cypress ( #734 )
...
* Add some basic integration tests and CI in GitHub
* Add push trigger
* Add badge for tests to readme
* Unit tests
* Just use the development infura URL in the tests
* Remove unused webpack config
* Make integration test run on the same port as yarn start
* make test a little bit better
* rename describe
2020-05-08 11:38:33 -04:00