1*** Settings ***
2
3Documentation  Test OpenBMC GUI "Server LED" sub-menu of "Server control".
4
5Resource        ../../lib/resource.robot
6
7Suite Setup     Launch Browser And Login OpenBMC GUI
8Suite Teardown  Close Browser
9Test Setup      Test Setup Execution
10
11
12*** Variables ***
13
14${xpath_led_light_control}           //*[@for="toggle__switch-round"]
15
16
17*** Test Cases ***
18
19Verify Existence Of All Sections In Server LED Page
20    [Documentation]  Verify existence of all sections in Server LED page.
21    [Tags]  Verify_Existence_Of_All_Sections_In_Server_LED_Page
22
23    Page Should Contain  LED light control
24    Page Should Contain  Server LED light
25
26
27Verify Existence Of All Buttons In Server LED Page
28    [Documentation]  Verify existence of all buttons in Server LED page.
29    [Tags]  Verify_Existence_Of_All_Buttons_In_Server_LED_Page
30
31    Page Should Contain Element  ${xpath_led_light_control}
32
33
34*** Keywords ***
35
36Test Setup Execution
37    [Documentation]  Do test case setup tasks.
38
39    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
40    Click Element  ${xpath_select_server_control}
41    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
42    Click Element  ${xpath_select_server_led}
43    Wait Until Page Contains  Server LED
44