fixed shutdown not working on onboarding page
This commit is contained in:
parent
1322352fa2
commit
c0def6fb7e
@ -19,6 +19,7 @@
|
|||||||
<script defer src='/private/js/console.js'></script>
|
<script defer src='/private/js/console.js'></script>
|
||||||
<script defer src='donate.js'></script>
|
<script defer src='donate.js'></script>
|
||||||
<script defer src='onboarding.js'></script>
|
<script defer src='onboarding.js'></script>
|
||||||
|
<script defer src="/shared/panel.js"></script>
|
||||||
<script>alert("Content security policy appears to not be working. Your browser security is weak!")</script>
|
<script>alert("Content security policy appears to not be working. Your browser security is weak!")</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ restartBtn = document.getElementById('restartNode')
|
|||||||
shutdownBtn.onclick = function(){
|
shutdownBtn.onclick = function(){
|
||||||
if (! nowebpass){
|
if (! nowebpass){
|
||||||
if (confirm("Really shutdown Onionr?")){
|
if (confirm("Really shutdown Onionr?")){
|
||||||
httpGet('shutdownclean')
|
httpGet('/shutdownclean')
|
||||||
overlay('shutdownNotice')
|
overlay('shutdownNotice')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,13 +12,15 @@ from subprocess import Popen
|
|||||||
import subprocess
|
import subprocess
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from helium import start_firefox, click, Text
|
from helium import start_firefox, click, Text, Config
|
||||||
|
|
||||||
|
|
||||||
from onionrcommands.openwebinterface import get_url
|
from onionrcommands.openwebinterface import get_url
|
||||||
from onionrutils import escapeansi
|
from onionrutils import escapeansi
|
||||||
BROWSER_HEADLESS = os.getenv('ONIONR_TEST_HEADLESS')
|
BROWSER_HEADLESS = os.getenv('ONIONR_TEST_HEADLESS')
|
||||||
|
|
||||||
|
Config.implicit_wait_secs = 30
|
||||||
|
|
||||||
def start_onionr():
|
def start_onionr():
|
||||||
testargs = ["onionr.py", "start"]
|
testargs = ["onionr.py", "start"]
|
||||||
with patch.object(sys, 'argv', testargs):
|
with patch.object(sys, 'argv', testargs):
|
||||||
@ -35,6 +37,7 @@ class OnionrTests(unittest.TestCase):
|
|||||||
if Text('Get Started').exists():
|
if Text('Get Started').exists():
|
||||||
click('Get Started')
|
click('Get Started')
|
||||||
click('Circles')
|
click('Circles')
|
||||||
|
sleep(5)
|
||||||
if not Text('Circle Name').exists():
|
if not Text('Circle Name').exists():
|
||||||
Popen(['./onionr.sh', 'stop']).wait()
|
Popen(['./onionr.sh', 'stop']).wait()
|
||||||
web_driver.quit()
|
web_driver.quit()
|
||||||
|
@ -1 +1 @@
|
|||||||
1582883307
|
1582946012
|
Loading…
Reference in New Issue
Block a user