1*** Settings ***
2
3Documentation   Test OpenBMC GUI "Inventory and LEDs" sub-menu of "Hardware status" menu.
4
5Resource        ../../lib/gui_resource.robot
6
7Suite Setup     Suite Setup Execution
8Suite Teardown  Close Browser
9
10
11*** Variables ***
12
13${xpath_inventory_and_leds_heading}         //h1[text()="Inventory and LEDs"]
14${xpath_page_loading_progress_bar}          //*[@aria-label='Page loading progress bar']
15
16*** Test Cases ***
17
18Verify Navigation To Inventory And LEDs Page
19    [Documentation]  Verify navigation to inventory page.
20    [Tags]  Verify_Navigation_To_Inventory_And_LEDs_Page
21
22    Page Should Contain Element  ${xpath_inventory_and_leds_heading}
23
24
25Verify Components On Inventory And LEDs Page
26    [Documentation]  Verify whether required components are displayed under inventory and LEDs page.
27    [Tags]  Verify_Components_On_Inventory_And_LEDs_Page
28    [Template]  Page Should Contain
29
30    # Check all the hardware component are available.
31
32    System indicators
33    Chassis
34    System
35    BMC manager
36    DIMM slot
37    Fans
38    Power supplies
39    Processors
40    Assemblies
41    PCIe slots
42    Fabric Adapters
43
44
45*** Keywords ***
46
47Suite Setup Execution
48    [Documentation]  Do test suite setup tasks.
49
50    Launch Browser And Login GUI
51    Click Element  ${xpath_hardware_status_menu}
52    Click Element  ${xpath_inventory_and_leds_sub_menu}
53    Wait Until Keyword Succeeds  30 sec  5 sec  Location Should Contain  inventory
54    Wait Until Element Is Not Visible   ${xpath_page_loading_progress_bar}  timeout=30
55