VID: Fix newVNFChange by being more graceful before clicking
[integration/csit.git] / tests / vid / newVNFChange / test1.robot
index 3c10330..4c3e2a6 100644 (file)
@@ -14,7 +14,6 @@ ${body}=  {"workflowsDetails":[{"workflowName":"VNF In Place Software Update","v
 
 *** Test Cases ***
 add new VNF Change in VID GUI From Local worfkow
-    [Documentation]   Logs in to VID GUI
     Setup Browser
     Go To    ${VID_LOGIN_URL}
 
@@ -38,31 +37,30 @@ add new VNF Change in VID GUI From Local worfkow
     ${headers}=    Create Dictionary    Accept-Encoding=gzip  Accept-Encoding=deflate    Content-Type=application/json
     ${response}=  Post Request    vid    /vid/change-management/vnf_workflow_relation    headers=${headers}  data=${body}
 
+    Wait Until Element Is Visible     xpath=//div[@heading='VNF Changes']//a[1]
     Click Element    xpath=//div[@heading='VNF Changes']//a[1]
 
     Click Element    xpath=//div[@ng-click='vm.createNewChange()']
 
     Wait Until Page Contains    New VNF Change    ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
 
-    Select From List  xpath=//select[@name='subscriber']  CAR_2020_ER
+    Select From List By Label  xpath=//select[@name='subscriber']  CAR_2020_ER
 
-    Select From List  xpath=//select[@name='serviceType']  gNB
+    Select From List By Label  xpath=//select[@name='serviceType']  gNB
 
-    Select From List  xpath=//select[@name='vnfType']  vLBMS
+    Select From List By Label  xpath=//select[@name='vnfType']  vLBMS
 
-    Select From List  xpath=//select[@name='fromVNFVersion']  3.0
+    Select From List By Label  xpath=//select[@name='fromVNFVersion']  3.0
 
     Click Element   xpath=//multiselect[@name='vnfName']
     Click Element   xpath=//a[contains(text(),'vnf-ws')]
 
-    Select From List  xpath=//select[@name='workflow']  VNF In Place Software Update
-    #temp solution
-    #Click Button    xpath=//button[@id='cancel']
+    Select From List By Label  xpath=//select[@name='workflow']  VNF In Place Software Update
 
     Wait Until Page Contains    Operations timeout    ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
-    Input Text    xpath=//input[@id='internal-workflow-parameter-text-2']    10
-    Input Text    xpath=//input[@id='internal-workflow-parameter-text-3']    test
-    Input Text    xpath=//input[@id='internal-workflow-parameter-text-4']    test
+    Input Text    xpath=//input[@id='internal-workflow-parameter-text-2-operations-timeout']    10
+    Input Text    xpath=//input[@id='internal-workflow-parameter-text-3-existing-software-version']    test
+    Input Text    xpath=//input[@id='internal-workflow-parameter-text-4-new-software-version']    test
 
     Wait Until Element Is Enabled   xpath=//button[@id='submit']  ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
     Click Button    xpath=//button[@id='submit']