GithubHelp home page GithubHelp logo

isabella232 / token-wizard-test-automation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from poanetwork/token-wizard-test-automation

0.0 0.0 0.0 32.14 MB

Automated tests for token-wizard

License: GNU General Public License v3.0

JavaScript 100.00%

token-wizard-test-automation's Introduction

Automated tests for token-wizard

Start URL in config.json

Test suite #1 , starts with command npm run -script test1

UI tests

 - 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 out Name field with valid data
 - Wizard step#2: user able to fill out Ticker field with valid data
 - Wizard step#2: user is not able to open Step2 if Decimals field empty
 - 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: number of added reserved tokens is correct
 - Wizard step#2: button ClearAll is displayed 
 - Wizard step#2: alert is displayed after clicking ClearAll 
 - Wizard step#2: user is able to 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 with clicking button Continue 
 
 - Wizard step#3: field Wallet address contains the metamask account address 
 - Wizard step#3: Whitelist container present if checkbox WhitelistEnabled is selected
 - Wizard step#3: User is able to download CSV file with whitelisted addresses
 - Wizard step#3: Number of added whitelisted addresses is correct
 - Wizard step#3: User is able to bulk delete all whitelisted addresses
 - Wizard step#3: All whitelisted addresses 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: User is able to fill out field Rate with valid data
 - Wizard step#3: User is able to fill out field Supply with valid data
 - Wizard step#3: User is able to add tier
 - Wizard step#3: user is able to proceed to Step4 by clicking button Continue
 
 - Wizard step#4: alert is displayed 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 a transaction
 - Wizard step#4: alert is presented if user wants to leave the wizard
 - Wizard step#4: User is able to stop deployment

Functional tests

 - Owner  can create crowdsale(scenario testSuite1.json),1 tier, not modifiable, no whitelist,1 reserved
 - Disabled to modify the end time if crowdsale is not modifiable
 - Investor can NOT buy less than mincap in first transaction
 - Investor can buy amount equal mincap
 - Invest page: Investor's balance is changed accordingly after purchase
 - Investor is not able to buy amount which significally more than total supply
 - Investor is able to buy less than mincap after first transaction
 - Crowdsale is finished in time
 - Disabled to buy after crowdsale time expired
 - Owner able to distribute if crowdsale time expired but not all tokens were sold
 - Reserved address has received correct quantity of tokens after distribution
 - Owner is able to finalize ( if crowdsale time expired but not all tokens were sold)
 - Investor has received correct quantity of tokens after finalization


 - Owner  can create crowdsale(scenario testSuite2.json): 1 tier,1 whitelist address,2 reserved addresses, modifiable
 - Whitelisted investor NOT able to buy before start of crowdsale 
 - Disabled to modify the name of tier
 - Tier's name  matches given value
 - Disabled to modify the wallet address
 - Tier's wallet address matches given value
 - Owner is able to add whitelisted address before start of crowdsale
 - Owner is able to modify the rate before start of crowdsale
 - Manage page: Rate changed accordingly after modifying
 - Manage page: owner is able to modify the total supply before start of crowdsale
 - Manage page: total supply changed accordingly  after changing
 - Manage page: owner is able to modify the total supply before start of crowdsale
 - Manage page: Owner is able to modify the start time  before start of crowdsale
 - Manage page:  end time changed  after modifying
 - Manage page: warning is displayed if end time earlier than start time
 - Warning present if not owner open manage page
 - Manage page: disabled to modify the start time if crowdsale has begun
 - Manage page: disabled to modify the total supply if crowdsale has begun
 - Manage page: disabled to modify the rate 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
 - Manage page: owner is able to add whitelisted address if crowdsale has begun
 - Whitelisted investor is not able to buy less than min in first transaction
 - Whitelisted investor can buy amount equal mincap
 - Whitelisted investor is able to buy less than mincap after first transaction
 - Whitelisted investor is not able to buy more than assigned max
 - Whitelisted investor is able to buy assigned max
 - Whitelisted investor is not able to buy more than total supply in tier
 - Owner is not able to distribute before all tokens are sold and crowdsale is not finished
 - Owner is NOT able to distribute before all tokens are sold and crowdsale is not finished
 - Owner is NOT able to finalize before  all tokens are sold and crowdsale is not finished
 - Whitelisted investor is able to buy total supply 
 - Whitelisted investor is not able to buy if all tokens were sold
 - Owner able to distribute after all tokens were sold but crowdsale is not finished
 - Reserved address has received correct quantity of tokens after distribution
 - Reserved address has received correct percentage of tokens after distribution
 - Not Owner is not able to finalize (after all tokens were sold)
 - Owner able to finalize (after all tokens were sold)
 - Disabled to buy after finalization of crowdsale
 - Investor #1 has received correct amount of tokens after finalization
 - Investor #2 has received correct amount of tokens after finalization

token-wizard-test-automation's People

Contributors

dennis00010011b avatar igorbarinov avatar vbaranov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.