-
Notifications
You must be signed in to change notification settings - Fork 12
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
Pool and direct deal creation flow tests #969
base: e2e-devops
Are you sure you want to change the base?
Conversation
Staging into main
fallback added (#885)
fix error thrown (#890)
merge staging to main
merge staging to main
merge staging to main
Add LORDS to vouched pools (#921)
Hide Metagates pools (#923)
merge staging to main
merge staging to main
* InvestorsModal now sortable by AmountInvested or UserAddress * Remove orderBy function from useAelinInvestors hook * Rename orderBy to newSortBy for clarity
* Fix default font size * Fix maintenance message * Fix history empty state * Fix nft selector * fix nft selector * Fix small font issues * Fix font size of the vest page
* Fix default font size * Upgrade to latest web3-onboard version * Fix merge conflict
Staging into Main
* Fix font size * fix loader
Improve some font sizes (#967)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
this.allowlistAddress = '0x0000000000000000000000000000000000000000' | ||
this.allowlistAmount = 1 |
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.
Can't we use faker to add some level of randomness?
} | ||
} | ||
|
||
assertNoCapCheckBox(checked) { |
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.
All assertions should be done in the spec file. Leave this for simple getters and pool logic methods
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.
Strange requirement. It will lead to a lot of repetitive checks and bloated spec files. What's wrong with aggregation of asserts in util functions like this one?
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.
Now it looks pretty clean and makes sense. But as this gets bigger and more tests are added, this might get out of control will too many utils/helpers, and making the level of abstraction too high. Anyway this is not critical, we could leave like that and see if in the future we need a refactor
} | ||
} | ||
|
||
assertDetails(fakeDirectDeal, step = CreateDirectDealSteps.VestingSchedule, expected) { |
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.
I think that this is a bit overkill.. why dont just add the code for each test directly?
You will be adding more lines/less clean, but you will end up removing unnecessary abstraction imo.
And again... we are mixing concerns here.
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.
Well, that's arguable... I see tests as a good source of requirements about how app should work, so readability is very helpful not only to write/fix them but also to onboard new contributors and discover use cases in general
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.
But I agree that there are definitely a trade off between more readable but more complex code and less readable but more reliable code, so we just need to agree which path we want to lean to and what price to pay
* ethlizards design (#955) * add ethliz theme * fix blur effect * fix background * add pool ethlizards screen * fix review * fix modal and gradients * add ethlizrd logo * update logo * fix merge conflict * Ethlizards theme improvements * change ETHLIZARDS_VOUCHER_ENS value * Fix weird CI issue * tidy up * design improvements * tidy up * tidy up * remove stake section from sidebar * Add lizards to pool/deal creation boxes --------- Co-authored-by: James <[email protected]>
* remove stake section from sidebar * Sidebar - stake rollback
* attempt to fix CI issue (#1009) * Stats see more button redirects to pools filtered by network as well (#1004) * Stats see more button redirects to pools filtered by network as well * Remove unused sponsors/List component --------- Co-authored-by: Atatakai <[email protected]> * Add CONTRIBUTING.md (#1023) * Use IPFS Gateway as default option to get Merkle tree data (#1028) * Remove jest warnings issues (#1026) * Add Sepolia network (#1029) * Add Ethlizards theme (#1025) * ethlizards design (#955) * add ethliz theme * fix blur effect * fix background * add pool ethlizards screen * fix review * fix modal and gradients * add ethlizrd logo * update logo * fix merge conflict * Ethlizards theme improvements * change ETHLIZARDS_VOUCHER_ENS value * Fix weird CI issue * tidy up * design improvements * tidy up * tidy up * remove stake section from sidebar * Add lizards to pool/deal creation boxes --------- Co-authored-by: James <[email protected]> * Bring Stake section back to the Sidebar (#1027) * remove stake section from sidebar * Sidebar - stake rollback --------- Co-authored-by: Tanya <[email protected]> Co-authored-by: Atatakai <[email protected]> Co-authored-by: Dmitry <[email protected]> Co-authored-by: James <[email protected]>
* Lizards theme - Fix background image * fix grammar
* Fix Buy Aelin Optimism link * Fix
234f7a1
to
9426456
Compare
No description provided.