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.

test_fpcentral.py 779 Bytes
Newer Older
boklm's avatar
boklm committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
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.')