We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa4d7e9 commit 2c4e5fcCopy full SHA for 2c4e5fc
openwisp_controller/config/tests/test_selenium.py
@@ -317,6 +317,9 @@ def test_unsaved_changes(self):
317
# The WebDriver automatically accepts the
318
# beforeunload confirmation dialog. To verify the message,
319
# 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
323
self.web_driver.execute_script(
324
'django.jQuery(window).on("beforeunload", function(e) {'
325
' console.warn(e.returnValue); });'
0 commit comments