reenabled browser tests, added mail test, work on mail signatures
This commit is contained in:
parent
60d2ebfaed
commit
4516cdee24
4 changed files with 28 additions and 11 deletions
|
@ -1,10 +1,10 @@
|
|||
from unittest.mock import patch
|
||||
import sys, os
|
||||
sys.path.append(".")
|
||||
sys.path.append("src/")
|
||||
import unittest, uuid
|
||||
TEST_DIR = 'testdata/-%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
||||
os.environ["ONIONR_HOME"] = TEST_DIR
|
||||
from unittest.mock import patch
|
||||
|
||||
from utils import createdirs
|
||||
|
||||
|
@ -34,8 +34,9 @@ class OnionrTests(unittest.TestCase):
|
|||
sleep(1)
|
||||
url = 'http' + escapeansi.escape_ANSI(Popen(['./onionr.sh', 'url'], stdout=subprocess.PIPE).communicate()[0].decode().split('http')[1])
|
||||
web_driver = start_firefox(url=url, headless=BROWSER_HEADLESS)
|
||||
if Text('Get Started').exists():
|
||||
if not Text('Circles').exists():
|
||||
click('Get Started')
|
||||
sleep(2)
|
||||
click('Circles')
|
||||
sleep(5)
|
||||
if not Text('Circle Name').exists():
|
||||
|
@ -45,6 +46,4 @@ class OnionrTests(unittest.TestCase):
|
|||
Popen(['./onionr.sh', 'stop']).wait()
|
||||
web_driver.quit()
|
||||
|
||||
|
||||
|
||||
unittest.main()
|
|
@ -1 +1 @@
|
|||
1583304780
|
||||
1583317276
|
Loading…
Add table
Add a link
Reference in a new issue