Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug:ui] Preview keyboard keys do not work anymore #868

Open
nemesifier opened this issue Jun 6, 2024 · 1 comment · May be fixed by #955
Open

[bug:ui] Preview keyboard keys do not work anymore #868

nemesifier opened this issue Jun 6, 2024 · 1 comment · May be fixed by #955
Labels

Comments

@nemesifier
Copy link
Member

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.

@nemesifier
Copy link
Member Author

Seems to be an interaction with openwisp/openwisp-notifications#275, nonetheless, I still think it's good to add these selenium tests.

dee077 added a commit to dee077/openwisp-controller that referenced this issue Dec 24, 2024
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.

Fixes openwisp#868
@dee077 dee077 linked a pull request Dec 24, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

1 participant