Skip to content

Commit 2c4e5fc

Browse files
committed
[req-changes] Updated comment
1 parent fa4d7e9 commit 2c4e5fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openwisp_controller/config/tests/test_selenium.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ def test_unsaved_changes(self):
317317
# The WebDriver automatically accepts the
318318
# beforeunload confirmation dialog. To verify the message,
319319
# we log it to the console and check its content.
320+
#
321+
# our own JS code sets e.returnValue when triggered
322+
# so we just need to ensure it's set as expected
320323
self.web_driver.execute_script(
321324
'django.jQuery(window).on("beforeunload", function(e) {'
322325
' console.warn(e.returnValue); });'

0 commit comments

Comments
 (0)