Skip to content

Commit

Permalink
Merge pull request #111 from threefoldtech/development_dashboard_upda…
Browse files Browse the repository at this point in the history
…te_tests

Development dashboard update selenium tests
  • Loading branch information
A-Harby authored Apr 19, 2023
2 parents 94b784c + 786e76c commit 37f02ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ packages/weblets/playground/public/build/

.build
.vscode
.hypothesis

package-lock.json
yarn-error.log
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def test_create_twin_relay(browser):
assert twin_page.wait_for('Twin created!')
assert relay in browser.page_source
twin_page.Check_Balance()
assert twin_page.wait_for('Free: 0.097')
assert twin_page.wait_for('Total: 0.097')
assert twin_page.wait_for('Transferable: 0.097')
assert twin_page.wait_for('Reserved (Locked): 0 TFT')


Expand Down
4 changes: 3 additions & 1 deletion packages/dashboard/tests/frontend_selenium/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
import random
import string
import os
import json


def get_seed():
config = configparser.ConfigParser()
config.read('Config.ini')
seed = config['Utils']['seed']
if (seed == ''):
try:
seed = os.environ["TFCHAIN_MNEMONICS"]
seed = json.loads(os.environ["TFCHAIN_MNEMONICS"])["TFCHAIN_MNEMONICS"]
except:
print("You must add account seed either in Config.ini or by exporting TFCHAIN_MNEMONICS.")
return str(seed)
Expand Down

0 comments on commit 37f02ae

Please sign in to comment.