|
|
|
@ -537,7 +537,8 @@ def test_custom_capabilities( webapp, webdriver ): #pylint: disable=too-many-sta |
|
|
|
|
elem.send_keys( "QSU (modified)" ) |
|
|
|
|
|
|
|
|
|
# delete a capability |
|
|
|
|
ActionChains(webdriver).key_down( Keys.CONTROL ).click( elems[1] ).key_up( Keys.CONTROL ).perform() |
|
|
|
|
ActionChains( webdriver ).key_down( Keys.CONTROL ).click( elems[1] ).perform() |
|
|
|
|
ActionChains( webdriver ).key_up( Keys.CONTROL ).perform() |
|
|
|
|
|
|
|
|
|
# add a new capability |
|
|
|
|
elem = find_child( "#vo_capabilities-add" ) |
|
|
|
@ -569,7 +570,8 @@ def test_custom_capabilities( webapp, webdriver ): #pylint: disable=too-many-sta |
|
|
|
|
|
|
|
|
|
# delete all capabilities |
|
|
|
|
for elem in elems: |
|
|
|
|
ActionChains(webdriver).key_down( Keys.CONTROL ).click( elem ).key_up( Keys.CONTROL ).perform() |
|
|
|
|
ActionChains( webdriver ).key_down( Keys.CONTROL ).click( elem ).perform() |
|
|
|
|
ActionChains( webdriver ).key_up( Keys.CONTROL ).perform() |
|
|
|
|
click_dialog_button( "OK" ) |
|
|
|
|
check_snippet( "" ) |
|
|
|
|
|
|
|
|
@ -659,7 +661,8 @@ def test_custom_comments( webapp, webdriver ): #pylint: disable=too-many-stateme |
|
|
|
|
elem.send_keys( "a comment (modified)" ) |
|
|
|
|
|
|
|
|
|
# delete a comment |
|
|
|
|
ActionChains(webdriver).key_down( Keys.CONTROL ).click( elems[1] ).key_up( Keys.CONTROL ).perform() |
|
|
|
|
ActionChains( webdriver ).key_down( Keys.CONTROL ).click( elems[1] ).perform() |
|
|
|
|
ActionChains( webdriver ).key_up( Keys.CONTROL ).perform() |
|
|
|
|
|
|
|
|
|
# add a new comment |
|
|
|
|
elem = find_child( "#vo_comments-add" ) |
|
|
|
@ -691,7 +694,8 @@ def test_custom_comments( webapp, webdriver ): #pylint: disable=too-many-stateme |
|
|
|
|
|
|
|
|
|
# delete all comments |
|
|
|
|
for elem in elems: |
|
|
|
|
ActionChains(webdriver).key_down( Keys.CONTROL ).click( elem ).key_up( Keys.CONTROL ).perform() |
|
|
|
|
ActionChains( webdriver ).key_down( Keys.CONTROL ).click( elem ).perform() |
|
|
|
|
ActionChains( webdriver ).key_up( Keys.CONTROL ).perform() |
|
|
|
|
click_dialog_button( "OK" ) |
|
|
|
|
check_snippet( "" ) |
|
|
|
|
|
|
|
|
@ -982,7 +986,8 @@ def test_elite( webapp, webdriver ): #pylint: disable=too-many-statements |
|
|
|
|
check_elite2( True, True ) |
|
|
|
|
elems = find_children( "#vo_capabilities-sortable li" ) |
|
|
|
|
webdriver.execute_script( "arguments[0].scrollIntoView(true);", elems[4] ) |
|
|
|
|
ActionChains(webdriver).key_down( Keys.CONTROL ).click( elems[4] ).key_up( Keys.CONTROL ).perform() |
|
|
|
|
ActionChains( webdriver ).key_down( Keys.CONTROL ).click( elems[4] ).perform() |
|
|
|
|
ActionChains( webdriver ).key_up( Keys.CONTROL ).perform() |
|
|
|
|
click_dialog_button( "OK" ) |
|
|
|
|
check_elite( True, False ) |
|
|
|
|
|
|
|
|
|