blob: b486da7b90dc322bd04b91e82e7f053d2bab4713 [file] [log] [blame]
*** Settings ***
Documentation Test OpenBMC GUI "Inventory and LEDs" sub-menu of "Hardware status" menu.
Resource ../../lib/gui_resource.robot
Suite Setup Suite Setup Execution
Suite Teardown Close Browser
Test Tags Inventory_And_Leds_Sub_Menu
*** Variables ***
${xpath_inventory_and_leds_heading} //h1[text()="Inventory and LEDs"]
${xpath_page_loading_progress_bar} //*[@aria-label='Page loading progress bar']
*** Test Cases ***
Verify Navigation To Inventory And LEDs Page
[Documentation] Verify navigation to inventory page.
[Tags] Verify_Navigation_To_Inventory_And_LEDs_Page
Page Should Contain Element ${xpath_inventory_and_leds_heading}
Verify Components On Inventory And LEDs Page
[Documentation] Verify whether required components are displayed under inventory and LEDs page.
[Tags] Verify_Components_On_Inventory_And_LEDs_Page
[Template] Page Should Contain
# Check all the hardware component are available.
System indicators
Chassis
System
BMC manager
DIMM slot
Fans
Power supplies
Processors
Assemblies
PCIe slots
Fabric Adapters
*** Keywords ***
Suite Setup Execution
[Documentation] Do test suite setup tasks.
Launch Browser And Login GUI
Click Element ${xpath_hardware_status_menu}
Click Element ${xpath_inventory_and_leds_sub_menu}
Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain inventory
Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30