GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Unverified Commit 90692b7c authored by boklm's avatar boklm
Browse files

Bug 22587: add an FPCentral test

parent 65f4a56a
......@@ -497,6 +497,13 @@ our @tests = (
marionette_test => 'pinning',
use_net => 1,
},
{
name => 'fpcentral',
type => 'marionette',
descr => 'Check the browser fingerprint using fpcentral',
fpcentral_url => 'http://163.172.8.55:5000/fp?automated_test',
use_net => 1,
},
);
sub set_test_prefs {
......
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase
import testsuite
class Test(MarionetteTestCase):
def setUp(self):
MarionetteTestCase.setUp(self)
ts = testsuite.TestSuite()
self.ts = ts
self.test_page_url = ts.t['test']['fpcentral_url']
if 'timeout' in ts.t['test']:
self.timeout = ts.t['test']['timeout']
else:
self.timeout = 50000
def test_page(self):
with self.marionette.using_context('content'):
self.marionette.navigate(self.test_page_url)
self.marionette.set_search_timeout(self.timeout)
elt = self.marionette.find_element('id', 'acceptableSummaryResult');
self.assertEqual(elt.text, 'All attributes have an acceptable value.')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment