You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a Selenium test case to replicate the process by creating a device, clicking its anchor tag, pressing ALT+P to open the preview, and pressing ESC to close it.
Fixesopenwisp#868
Open any config object like a Device, Template or VPN Server.
Make sure there's some config defined.
Problem 1: Opening Preview
Try opening the preview with the ALT+P keys.
Expected autcome: preview overlay opens.
Actual outcome: nothing happens.
Problem 1: Closing Preview
Try opening the preview by clicking on the preview button.
Now press ESC key to close.
Expected autcome: preview overlay closes.
Actual outcome: nothing happens.
Automated tests
We need to continue making OpenWISP more robust and prevent these UI bugs from happening again.
Fortunately, we have already added some Selenium UI tests here:
https://github.com/openwisp/openwisp-controller/blob/master/openwisp_controller/config/tests/test_selenium.py
We must write 2 new tests which replicate these issues: we must ensure the tests fail with an understandable error message before applying the fix.
The text was updated successfully, but these errors were encountered: