significance
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Bzzaar Test Script # Process ## Issue lifecycle 1. Issue is raised 2. Issue is refined 3. Remediation is prescribed 4. Issue is assigned 5. Fix is actioned and PR raised 6. 2x Code reviews + 1x QA on testnet 7. Pull request is merged and issue closed ## Release lifecylce 1. PR's all merged 2. Bump version number in package.json 3. Full test on testnet to ensure no regression bugs 4. If regression bugs: raise issues and go to step 1 5. No regression bugs: go to next step 6. 2x Analyse diff 7. QA on mainnet 8. If regression bugs: raise issues and go to step 1 9. No regression bugs: go to next step 10. Tag and release *with engineers ready on standby to fix highly unlikely critical bugs* 11. Final QA 12. Release is complete # Tasks - [x] add checkboxes for all actions that need checking - how to verify eth price in notes - should we verify the tx data? - maximum sold should be actual sold ETH4BZZ - add walletconnect to test script for buy/sell BZZ - confirm dialogue not show for sell dai from bzz - Approved and waiting for exchange confirmation - implies no action should be taken - work out how best to simulate failed transactions - are there multiple paths? or just incorrect nonce is enough? - i is only a button sometimes - screen keeps flashing - gpu usage is very high causing fan - animations? - stars below ## Target Environments We will currently explicitly target Desktop Chrome and Metamask and with or without Ledger Live toolchain for latest macos, ubuntu and windows. Development and first stage testing should be completed locally using a local development server, ganache-cli and bzzaar-contracts app to deploy a test scenario. Once everything is determined as working, the app should be tested deployed to Swarm and Github pages on a test network such as goerli or rinkeby. Once this is verified as working, a final full test on mainnet is performed before deployment. In the near future we will seek to expand this usage statistics for Bzzaar and similar defi applications. *nb. metamask/chrome seems currently broken for non ledger live ws interaction* ## User Stories *nb. the following is just a guide and is not a complete tree of all possible sequences, effort should be taken to mix up the order and try as hard as possible to find sequences of events that result in an error. randomising testing behaviour by varying amounts, accounts, and using the ledger to confirm transactions should also be introduced in an ad-hoc fashion.* - info splash page is shown with **empty localstorage** - [x] splash page is shown - view page - [ ] correct price is populated in header - wallet is not connected - [ ] 'not connected' state is diplayed - refresh price - [x] price is updated - [ ] price is shown as updated - price is not updated - ... - toggle dark mode - [x] light theme is displayed - toggle light mode - [x] dark theme is displayed - reload page - correct mode is retained - [x] dark - [x] light - [ ] connect wallet - click connect wallet - dialogue is displayed - click connect to metamask - connect using metamask while metamask is unlocked - connect using metamask while is not unlocked - [x] account is connected - [x] 'connected' state is diplayed - [x] correct address is displayed - [ ] correct balance in BZZ is displayed - [x] correct balance in ETH is displayed - [x] correct balances are still shown when the 'switch' button is pressed - account drop down - click copy address - [x] correct address is copied to clipboard - click Tx History - [x] correct etherscan page for address is opened in new tab - click connect to 'wallet connect' - [ ] account is connected - 'connected' state is diplayed - [ ] correct address is displayed - [ ] correct balance in BZZ is displayed - [ ] correct balance in ETH is displayed - [ ] correct balances are still shown when the 'switch' button is pressed - account drop down - click copy address - [ ] correct address is copied to clipboard - click Tx History - [ ] correct etherscan page for address is opened in new tab - click 'i' in top right hand corned - [x] correct info is displayed - click 'i' near slippage - [x] correct info is displayed - 'i' is white and hardly visible - change account in metamask without disconnecting - click metamask plugin icon - [x] change to another account - [ ] account is connected - [x] 'connected' state is diplayed - [x] correct address is displayed - [x] correct balance in BZZ is displayed - [x] correct balance in ETH is displayed - [x] correct balances are still shown when the 'switch' button is pressed - account drop down - click copy address - [x] correct address is copied to clipboard - click Tx History - [x] correct etherscan page for address is opened in new tab 10 mins - 0 eth - buy BZZ for ETH - 30 BZZ - [x] 'buy bzz tokens' is displayed - [ ] enter amount in BZZ (should check various amounts especially very small and very large) - correct values are displayed in 'from' and 'to' - slippage to various values (options and manual input) - [ ] slippage has changed in metamask tx under 'edit permission' - click exchange - immediate failure. - [x] transaction is shown as pending in wallet dropdown - [x] confirmation dialogue is shown - [ ] correct values are shown - click confirm - [x] metamask prompt appears with transaction populated - [ ] 'MINT' is displayed - [x] correct amount in ETH - [ ] gas is estimated correctly - no, gas estimated at 53 - [x] confirm transaction - transaction shows as pending in account dropdown - transaction is confirmed - success dialogue is shown - correct values are shown - [x] gas used - 27.54 - [x] received - [x] maximum sold - [x] new balance - click 'go check etherscan' - correct transaction is opened in etherscan for correct network - dismiss dialogue - [x] correct balance in BZZ is displayed - [x] correct balance in ETH is displayed - [ ] 'exchange complete' is displayed - [ ] buy/sell values are reset 12 mins, 27.54 gas - transaction fails - fail dialogue is shown - [ ] correct values are shown - ... - [ ] click 'go check etherscan' - correct transaction is opened in etherscan for correct network - dismiss dialogue - [ ] correct balance in BZZ is displayed - [ ] correct balance in ETH is displayed - sell BZZ for ETH - 20 BZZ - 'sell bzz tokens' is displayed - enter amount in BZZ (should check various amounts especially very small and very large) - correct values are displayed in 'from' and 'to' - change slippage to various values (options and manual input) - check slippage has changed in metamask tx under 'edit permission' - click approve - [ ] transaction is shown as pending in wallet dropdown - [ ] confirmation dialogue is shown - [x] metamask popup is appears - [x] confirm transaction fee - 7.73 dollars - [x] pending approval is shown in metamask - [x] exchange is approved - click exchange - [x] transaction is shown as pending in wallet dropdown - [ ] confirmation dialogue is shown - correct values are shown! - [](https://i.imgur.com/FzVLiui.png) - click confirm - [ ] metamask prompt appears with transaction populated - [ ] 'MINT' is displayed - [ ] correct amount in ETH - [ ] gas is estimated correctly - confirm transaction - [ ] transaction shows as pending in account dropdown - [ ] transaction is confirmed - [ ] success dialogue is shown - correct values are shown - [ ] gas used - [ ] received - [ ] maximum sold - [ ] new balance - click 'go check etherscan' - correct transaction is opened in etherscan for correct network - dismiss dialogue - [ ] correct balance in BZZ is displayed - [ ] correct balance in ETH is displayed - [ ] 'exchange complete' is displayed - [ ] buy/sell values are reset - transaction fails - fail dialogue is shown - [ ] correct values are shown - ... - [ ] click 'go check etherscan' - correct transaction is opened in etherscan for correct network - dismiss dialogue - [ ] correct balance in BZZ is displayed - [ ] correct balance in ETH is displayed - buy BZZ for DAI - select DAI from dropdown - [ ] 'buy bzz tokens' is displayed - [ ] correct balances are displayed - [ ] 'approve' and 'exchange' buttons are shown - enter amount in BZZ (should check various amounts especially very small and very large) - correct values are displayed in 'from' and 'to' - change slippage to various values (options and manual input) - [ ] check slippage has changed in metamask transaction under 'edit permissions' - click exchange - [ ] transaction is shown as pending in wallet dropdown - [ ] allow 'x' to spend your 'y' metamask dialogue is shown - [ ] click 'edit permission' - correct values are shown - click confirm transaction - [ ] transaction shows as pending in account dropdown - [ ] transaction is confirmed - 'waiting for exchange...' is displayed - click 'exchange' - [ ] confirm prompt is displayed - correct values are shown - [ ] received - [ ] maximum sold - click confirm - confirm transaction - [ ] transaction suceeds - 'success' dialogue is displayed - dismiss dialogue - [ ] correct balance in BZZ is displayed - [ ] correct balance in DAI is displayed - [ ] 'exchange complete' is displayed - [ ] buy/sell values are reset - [ ] transaction fails - [ ] transaction fails - reject transaction - [ ] 'approval failed is displayed' for < 5 seconds - [ ] state is returned to pre-test state - sell BZZ for DAI - select DAI from dropdown - [ ] 'sell bzz tokens' is displayed - [ ] correct balances are displayed - [ ] 'approve' and 'exchange' buttons are shown - enter amount in BZZ (should check various amounts especially very small and very large) - [ ] correct values are displayed in 'from' and 'to' - [ ] change slippage to various values (options and manual input) - [ ] check slippage has changed in metamask transaction under 'edit permissions' - click exchange - [ ] transaction is shown as pending in wallet dropdown - [ ] allow 'x' to spend your 'y' metamask dialogue is shown - [ ] click 'edit permission' - correct values are shown - click confirm transaction - [ ] transaction shows as pending in account dropdown - [ ] transaction is confirmed - 'waiting for exchange...' is displayed - click 'exchange' - [ ] confirm prompt is displayed - correct values are shown - [ ] received - [ ] maximum sold - click confirm - [ ] confirm transaction - transaction suceeds - 'success' dialogue is displayed - dismiss dialogue - [ ] correct balance in BZZ is displayed - [ ] correct balance in DAI is displayed - [ ] 'exchange complete' is displayed - [ ] buy/sell values are reset - transaction fails - transaction fails - reject transaction - [ ] 'approval failed is displayed' for < 5 seconds - [ ] state is returned to pre-test state - disconnect wallet - [ ] wallet is disconnected - [ ] 'not connected' state is diplayed ## Notes ### Prices To get the price in DAI - visit the [mainnet](https://etherscan.io/address/0x9B3Ae090E8280B34233d0F5976dF4CeAfA3826C3#readContract) or [goerli]() page on etherscan and select the contract tab. enter 1000000000000000000, then divide the outcome by 1000000000000000000. To get the price in ETH ...

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully