Skip to content

Commit

Permalink
[tests] Fixed "test_restoring_deleted_device" test
Browse files Browse the repository at this point in the history
The test was failing because of changes in openwisp-controller.
openwisp/openwisp-controller#962
  • Loading branch information
pandafy committed Jan 31, 2025
1 parent af5effb commit 42c6772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwisp_firmware_upgrader/tests/test_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_restoring_deleted_device(self):
reverse(f'admin:{self.config_app_label}_device_delete', args=[device.id])
)
self.web_driver.find_element(
by=By.XPATH, value='//*[@id="content"]/form/div/input[2]'
by=By.CSS_SELECTOR, value='#content form input[type="submit"]'
).click()
self.assertEqual(Device.objects.count(), 0)
self.assertEqual(DeviceConnection.objects.count(), 0)
Expand Down

0 comments on commit 42c6772

Please sign in to comment.