Skip to content

Commit 9af3d9f

Browse files
committed
[tests] Fixed "test_restoring_deleted_device" test
The test was failing because of changes in openwisp-controller. openwisp/openwisp-controller#962
1 parent a09e135 commit 9af3d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openwisp_firmware_upgrader/tests/test_selenium.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_restoring_deleted_device(self):
9595
reverse(f'admin:{self.config_app_label}_device_delete', args=[device.id])
9696
)
9797
self.web_driver.find_element(
98-
by=By.XPATH, value='//*[@id="content"]/form/div/input[2]'
98+
by=By.CSS_SELECTOR, value='#content form input[type="submit"]'
9999
).click()
100100
self.assertEqual(Device.objects.count(), 0)
101101
self.assertEqual(DeviceConnection.objects.count(), 0)

0 commit comments

Comments
 (0)