mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2024-12-04 16:41:31 -08:00
add TestIDsForDuplicates to test_selenium.py
This commit is contained in:
parent
fae3e8b328
commit
5014be49b6
@ -19,3 +19,10 @@ class TestSelenium(TestCase):
|
|||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
self.driver.quit()
|
self.driver.quit()
|
||||||
|
|
||||||
|
|
||||||
|
class TestIDsForDuplicates(TestSelenium, TestCase):
|
||||||
|
def test_for_unique_ids(self):
|
||||||
|
ids = [x.get_attribute(
|
||||||
|
'id') for x in self.driver.find_elements_by_xpath('//*[@id]')]
|
||||||
|
self.assertEqual(len(ids), len(set(ids)))
|
||||||
|
Loading…
Reference in New Issue
Block a user