Skip to content

Commit 26628e8

Browse files
committed
Restore iframe switching
1 parent b17d4a6 commit 26628e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/integration_selenium/test_allowlist_sanitization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_html_output_sanitized(self):
2828
self.wait_for_selector_visible("[data-description='sanitization warning']")
2929
self.assert_selector_absent("[data-description='allowlist link']")
3030
self.screenshot("sanitization warning")
31+
assert self.switch_to_frame()
3132
self.assert_selector_absent("[data-description='hello-world']")
3233
self.switch_to_default_content()
3334

@@ -46,6 +47,7 @@ def test_html_output_sanitized_admin(self):
4647
self.driver.refresh()
4748
self.assert_selector_absent("[data-description='sanitization warning']")
4849
self.assert_selector_absent("[data-description='allowlist link']")
50+
assert self.switch_to_frame()
4951
self.wait_for_selector("[data-description='hello-world']")
5052
self.switch_to_default_content()
5153
finally:

0 commit comments

Comments
 (0)