Skip to content

Commit 7dd517b

Browse files
committed
Add test for no third party view in popup
1 parent d61b60a commit 7dd517b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/selenium/popup_test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,13 @@ def test_trackers_link(self):
169169
# Look for EFF website and return if found.
170170
eff_url = "https://www.eff.org/privacybadger#faq-What-is-a-third-party-tracker?"
171171
self.assertEqual(self.driver.current_url, eff_url,
172-
"tracker explanation should open after clicking donate button on popup")
172+
"tracker explanation should open after clicking trackers button on popup")
173+
174+
def test_no_third_party(self):
175+
self.open_url_and_popup()
176+
177+
self.assertIn('no third party', self.find_el_by_css('#pbInstructions').text)
178+
self.assertFalse(self.find_el_by_css('#blockedResources').is_displayed())
173179

174180
def test_disable_enable_buttons(self):
175181
"""Ensure disable/enable buttons change popup state."""

0 commit comments

Comments
 (0)