Skip to content

Commit c142d19

Browse files
asmodehnAlexandre Vincent
andauthored
[tests:fix] Fixed hardcoded URL in test_selenium.TestDeviceAdmin
Co-authored-by: Alexandre Vincent <alexandre.vincent@stellar.tc>
1 parent 1dee7d9 commit c142d19

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

openwisp_firmware_upgrader/tests/test_selenium.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,10 @@ def test_restoring_deleted_device(self, *args):
114114
By.XPATH, '//*[@id="device_form"]/div/div[1]/input[1]'
115115
).click()
116116
try:
117-
WebDriverWait(self.web_driver, 5).until(
118-
EC.url_to_be(f"{self.live_server_url}/admin/config/device/")
117+
device_changelist_url = self.live_server_url + reverse(
118+
f"admin:{self.config_app_label}_device_changelist"
119119
)
120+
WebDriverWait(self.web_driver, 5).until(EC.url_to_be(device_changelist_url))
120121
except TimeoutException:
121122
self.fail("Deleted device was not restored")
122123

0 commit comments

Comments
 (0)