Skip to content

Commit 1989ad6

Browse files
committed
[deps] Upgraded openwisp-utils
1 parent 9b51544 commit 1989ad6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
pip install -U pip wheel setuptools
7979
pip install -U -r requirements-test.txt
8080
pip install -U -e .
81+
pip install -UI --no-deps https://github.com/openwisp/openwisp-utils/tarball/browser-logs
8182
pip install ${{ matrix.django-version }}
8283
8384
- name: QA checks

openwisp_controller/tests/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ def assertNumQueries(self, num, func=None, *args, using=DEFAULT_DB_ALIAS, **kwar
5959
class DeviceAdminSeleniumTextMixin(SeleniumTestMixin):
6060
def tearDown(self):
6161
super().tearDown()
62-
# Accept unsaved changes alert to allow other tests to run
62+
# Dismiss any unsaved changes alert to prevent it from blocking
63+
# navigation in subsequent tests. If left unresolved, this could
64+
# cause test failures by preventing the browser from loading new pages.
65+
# Ensuring a clean browser state before the next test runs.
6366
try:
6467
self.web_driver.refresh()
6568
except UnexpectedAlertPresentException:

0 commit comments

Comments
 (0)