Aww. Adjust the website test html code since my easter egg didn't work

This commit is contained in:
Miguel Jacq 2019-09-03 12:00:23 +10:00
parent f4f7b984e5
commit 458a0fb1d0
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -19,7 +19,7 @@ class GuiWebsiteTest(GuiShareTest):
'''Create GUI with given settings'''
# Create our test file
testfile = open('/tmp/index.html', 'w')
testfile.write('<html><blink>This is a test website hosted by OnionShare</blink></html>')
testfile.write('<html><body><p>This is a test website hosted by OnionShare</p></body></html>')
testfile.close()
common = Common()
@ -64,7 +64,7 @@ class GuiWebsiteTest(GuiShareTest):
r = requests.get(url, auth=requests.auth.HTTPBasicAuth('onionshare', self.gui.website_mode.server_status.web.password))
QtTest.QTest.qWait(2000)
self.assertTrue('<blink>This is a test website hosted by OnionShare</blink>' in r.text)
self.assertTrue('This is a test website hosted by OnionShare' in r.text)
def run_all_website_mode_setup_tests(self):
"""Tests in website mode prior to starting a share"""