File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
openwisp_controller/connection Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ button[disabled] {
14
14
# command_set-group .add-row ,
15
15
# command_set-group .advanced_editor ,
16
16
# command_set-group .form-row .field-type ,
17
- li .commands {
17
+ li .commands : not (. recent ) {
18
18
display : none !important ;
19
19
}
20
20
Original file line number Diff line number Diff line change @@ -55,3 +55,15 @@ def test_command_widget_on_device(self):
55
55
self .find_element (by = By .CSS_SELECTOR , value = "#ow-command-confirm-yes" ).click ()
56
56
57
57
self .assertEqual (Command .objects .count (), 1 )
58
+ # TODO: Selenium tests does not support websocket connections.
59
+ # Thus, we need to refresh the page. Remove this when support for
60
+ # websockets is added.
61
+ self .open (path )
62
+ self .wait_for_visibility (
63
+ By .CSS_SELECTOR ,
64
+ ( # selector for Django 5.2
65
+ "#tabs-container li.recent.commands,"
66
+ # selector for Django 4.2
67
+ " #tabs-container li.recent-commands"
68
+ ),
69
+ )
You can’t perform that action at this time.
0 commit comments