xref: /openbmc/openbmc-test-automation/gui/test/server_control/test_obmc_gui_server_led.robot (revision b2a2d948d555cb6e5169b9f21d489a3b089b4387)
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
11Test Tags       OBMC_GUI_Server_Led
12
13*** Variables ***
14
15${xpath_led_light_control}           //*[@for="toggle__switch-round"]
16
17
18*** Test Cases ***
19
20Verify Existence Of All Sections In Server LED Page
21    [Documentation]  Verify existence of all sections in Server LED page.
22    [Tags]  Verify_Existence_Of_All_Sections_In_Server_LED_Page
23
24    Page Should Contain  LED light control
25    Page Should Contain  Server LED light
26
27
28Verify Existence Of All Buttons In Server LED Page
29    [Documentation]  Verify existence of all buttons in Server LED page.
30    [Tags]  Verify_Existence_Of_All_Buttons_In_Server_LED_Page
31
32    Page Should Contain Element  ${xpath_led_light_control}
33
34
35*** Keywords ***
36
37Test Setup Execution
38    [Documentation]  Do test case setup tasks.
39
40    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
41    Click Element  ${xpath_select_server_control}
42    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
43    Click Element  ${xpath_select_server_led}
44    Wait Until Page Contains  Server LED
45