Skip to content

Commit 4a1f6d1

Browse files
author
Alexandre Vincent
committed
[change] Adjust test_selenium for custom config app_label
1 parent 97507af commit 4a1f6d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

openwisp_controller/tests/test_selenium.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ def test_restoring_deleted_device(self, *args):
9999
).click()
100100
try:
101101
WebDriverWait(self.web_driver, 5).until(
102-
EC.url_to_be(f"{self.live_server_url}/admin/config/device/")
102+
EC.url_to_be(
103+
self.live_server_url
104+
+ reverse(f"admin:{self.config_app_label}_device_changelist")
105+
)
103106
)
104107
except TimeoutException:
105108
self.fail("Deleted device was not restored")

0 commit comments

Comments
 (0)