|
||
---|---|---|
contracts | ||
entity | ||
pages | ||
scenarios | ||
test | ||
users | ||
utils | ||
.gitignore | ||
LICENSE | ||
MetaMask.crx | ||
README.md | ||
bulkReservedAddresses.csv | ||
bulkWhitelist.csv | ||
client_secret.json | ||
config.json | ||
index.js | ||
package-lock.json | ||
package.json |
README.md
Automated tests for token-wizard
Start URL in config.json
Test suite for MintedCappedCrowdsale , starts with command npm run e2eMinted
UI tests for MintedCappedCrowdsale
- User is able to open wizard welcome page
- Welcome page: button NewCrowdsale present
- Welcome page: button ChooseContract present
- Welcome page: user is able to open Step1 by clicking button NewCrowdsale
- Wizard step#1: user is able to open Step2 by clicking button Continue
- Wizard step#2: user able to fill Name field with valid data
- Wizard step#2: user able to fill Ticker field with valid data
- Wizard step#2: user able to fill Decimals field with valid data
- Wizard step#2: User is able to download CSV file with reserved addresses
- Wizard step#2: added only valid data from CSV file
- Wizard step#2: button ClearAll is displayed
- Wizard step#2: Alert present after clicking ClearAll
- Wizard step#2: user is able bulk delete of reserved tokens
- Wizard step#2: user is able to add reserved tokens one by one
- Wizard step#2: field Decimals is disabled if reserved tokens are added
- Wizard step#2: user is able to remove one of reserved tokens
- Wizard step#2: button Continue is displayed
- Wizard step#2: user is able to open Step3 by clicking button Continue
- Wizard step#3: Whitelist container present if checkbox "Whitelist enabled" is selected
- Wizard step#3: field minCap disabled if whitelist enabled
- Wizard step#3: User is able to download CSV file with whitelisted addresses
- Wizard step#3: Number of added whitelisted addresses is correct,data is valid
- Wizard step#3: User is able to bulk delete all whitelisted addresses
- Wizard step#3: All whitelisted addresses are removed after deletion
- Wizard step#3: User is able to add several whitelisted addresses one by one
- Wizard step#3: User is able to remove one whitelisted address
- Wizard step#3: User is able to set "Custom Gasprice" checkbox
- Wizard step#3: User is able to fill out the CustomGasprice field with valid value
- Wizard step#3: User is able to set SafeAndCheapGasprice checkbox
- Wizard step#3:Tier#1: User is able to fill out field "Rate" with valid data
- Wizard step#3:Tier#1: User is able to fill out field "Supply" with valid data
- Wizard step#3: User is able to add tier
- Wizard step#3:Tier#2: User is able to fill out field "Rate" with valid data
- Wizard step#3:Tier#2: User is able to fill out field "Supply" with valid data
- Wizard step#3: user is able to proceed to Step4 by clicking button Continue
- Wizard step#4: alert present if user reload the page
- Wizard step#4: user is able to accept alert after reloading the page
- Wizard step#4: button SkipTransaction is presented if user reject a transaction
- Wizard step#4: user is able to skip transaction
- Wizard step#4: alert is displayed if user wants to leave the wizard
- Wizard step#4: User is able to stop deployment
Functional tests for MintedCappedCrowdsale
- Owner can create crowdsale:2 tiers, modifiable, whitelist,2 reserved addresses
- Owner is able to open the manage page
- Manage page: correct number of reserved addresses is displayed
- Manage page: correct number of whitelisted addresses is displayed for tier#1
- Manage page: correct number of whitelisted addresses is displayed for tier#2
- Manage page: button 'Save' is disabled by default
- Manage page: button 'Save' is not clickable when disabled
- Manage page: owner is able to add whitelisted address before start of crowdsale
- Manage page: correct number of whitelisted addresses is displayed for tier#1
- Manage page: owner is able to modify the end time before start of crowdsale
- Manage page: end time properly changed after modifying
- Manage page: start time of tier#2 changed after end time of tier#1 was changed
- Manage page: end time of tier#2 changed accordingly after modifying
- Whitelisted investor not able to buy before start of crowdsale
- Invest page: Countdown timer is displayed
- Tier starts as scheduled
- Manage page: owner is able to add whitelisted address if crowdsale has begun
- Manage page: owner is able to modify the end time after start of crowdsale
- Manage page: end time changed accordingly after modifying
- Whitelisted investor is not able to buy less than min in first transaction
- Whitelisted investor can buy amount equal mincap
- Owner's Eth balance properly changed
- Invest page: Investors balance is properly changed after purchase
- Whitelisted investor is able to buy less than mincap after first transaction
- Owner's Eth balance properly changed
- Whitelisted investor is able to buy not more than maxCap
- Owner's Eth balance properly changed
- Whitelisted investor (which was added from Manage page) is able to buy maxCap
- Whitelisted investor is not able to buy more than remains even if individual maxCap is not reached
- Whitelisted investor is not able to buy if all tokens were sold
- Owner is not able to finalize if tier#1 is done
- Tier#1 has finished as scheduled
- Tier #2 started immideatelly after tier#1 is finished
- Investor which whitelisted in tier#1 is not able to buy in tier#2
- Investor which was added in whitelist from manage page in tier#1 is not able to buy in tier#2
- Whitelisted investor is able to buy maxCap in first transaction
- Owner's Eth balance properly changed
- Not owner is not able to finalize
- Owner is able to finalize (if crowdsale time expired but not all tokens were sold)
- Whitelisted investor is not able to buy if crowdsale finalized
- Reserved address has received correct quantity of tokens after distribution
- Investor has received correct quantity of tokens after finalization
- Owner can create crowdsale with minCap,1 tier, not modifiable, no whitelist,2 reserved addresses
- Investor not able to buy before start of crowdsale
- Disabled to modify the end time if crowdsale is not modifiable
- Invest page: Countdown timer is displayed
- Tier starts as scheduled
- Investor is not able to buy less than mincap in first transaction
- Investor can buy amount equal mincap
- Owner's Eth balance properly changed
- Invest page: Investor's balance is changed accordingly after purchase
- Investor is able to buy less than mincap after first transaction
- Owner's Eth balance properly changed
- Owner is not able to finalize if all tokens were not sold and crowdsale is not finished
- Crowdsale is finished as scheduled
- Disabled to buy after crowdsale's time expired
- Owner is able to finalize (if crowdsale time expired but not all tokens were sold)
- Investor is not able to buy if crowdsale is finalized
- Reserved address has received correct quantity of tokens after distribution
- Investor has received correct quantity of tokens after finalization
Test suite for DutchAuctionCrowdsale , starts with command npm run e2eDutch
UI tests for DutchAuctionCrowdsale
- User is able to open wizard welcome page
- Welcome page: button NewCrowdsale present
- Welcome page: button ChooseContract present
- Welcome page: user is able to open Step1 by clicking button NewCrowdsale
- Wizard step#1: user is able to click DutchAuction checkbox
- Wizard step#1: user is able to open Step2 by clicking button Continue
- Wizard step#2:Check persistant if account has changed
- Wizard step#2: user able to fill Name field with valid data
- Wizard step#2: user able to fill Ticker field with valid data
- Wizard step#2: user able to fill Decimals field with valid data
- Wizard step#2: user able to fill out 'Total supply' field with valid data
- Wizard step#2: button Continue is displayed and enabled
- Wizard step#2: user is able to open Step3 by clicking button Continue
- Wizard step#3: field Wallet address contains current metamask account address
- Wizard step#3:Tier#1: Whitelist container present if checkbox 'Whitelist enabled' is selected
- Wizard step#3: field minCap disabled if whitelist enabled
- Wizard step#3: User is able to download CSV file with whitelisted addresses
- Wizard step#3: Number of added whitelisted addresses is correct,data is valid
- Wizard step#3: User is able to bulk delete all whitelisted addresses
- Wizard step#3: All whitelisted addresses are removed after deletion
- Wizard step#3: User is able to add several whitelisted addresses one by one
- Wizard step#3: User is able to remove one whitelisted address
- Wizard step#3: User is able to set "Custom Gasprice" checkbox
- Wizard step#3: User is able to fill out the CustomGasprice field with valid value
- Wizard step#3: User is able to set SafeAndCheapGasprice checkbox
- Wizard step#3:Tier#1:User is able to fill out field 'minRate' with valid data
- Wizard step#3:Tier#1: User is able to fill out field 'maxRate' with valid data
- Wizard step#3: Button 'Continue' is disabled if minRate > maxRate
- Wizard step#3: Button 'Continue' is disabled if crowdsaleSupply>totalSupply
- Wizard step#3:Tier#1: User is able to fill out field Supply with valid data
- Wizard step#3: user is able to proceed to Step4 by clicking button Continue
- Wizard step#4: alert present if user reload the page
- Wizard step#4: user is able to accept alert after reloading the page
- Wizard step#4: button SkipTransaction is presented if user reject a transaction
- Wizard step#4: user is able to skip transaction
- Wizard step#4: alert is displayed if user wants to leave the wizard
- Wizard step#4: User is able to stop deployment
Functional tests for DutchAuctionCrowdsale
- Owner can create DutchAuction crowdsale: 2 whitelisted addresses,duration 3 min
- Invest page: Owner's balance has correct value (totalSupply-crowdsaleSupply)
- Whitelisted investor not able to buy before start of crowdsale
- Invest page: Countdown timer is displayed
- Tier starts as scheduled
- Whitelisted investor#1 is not able to buy less than minCap in first transaction
- Whitelisted investor#1 can buy amount equal minCap
- Invest page: Investor's#1 balance is properly changed after purchase
- Whitelisted investor#1 is able to buy less than minCap after first transaction
- Whitelisted investor#1 is able to buy maxCap
- Whitelisted investor's#1 balance limited by maxCap
- Whitelisted investor#2 with zero minCap is able to buy
- Whitelisted investor#2 balance is properly changed
- Crowdsale has finished as schedule
- Whitelisted investor is not able to buy if crowdsale finished
- Not owner is not able to finalize
- Owner is able to finalize (if crowdsale time is over but not all tokens have sold)
- Investor#1 has received correct quantity of tokens after finalization
- Investor#2 has received correct quantity of tokens after finalization
- Owner has received correct quantity of tokens after finalization
- Owner can create DutchAuction crowdsale: minCap,no whitelist
- Invest page: Owner's balance has correct value (totalSupply-supply)
- Investor not able to buy before start of crowdsale
- Invest page: countdown timer is displayed
- Crowdsale starts as scheduled
- Investor is not able to buy less than minCap in first transaction
- Investor is able to buy amount equal minCap
- Invest page: Investors balance is properly changed after purchase
- Whitelisted investor is able to buy less than minCap after first transaction
- Whitelisted investor is able to buy maxCap
- Owner's Eth balance properly changed
- Owner is able to finalize (if all tokens have been sold)
- Investor has received correct quantity of tokens after finalization
- Owner has received correct quantity of tokens after finalization