Skip to content
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

Development dashboard update selenium tests #111

Merged
merged 3 commits into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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