1*** Settings ***
2
3Documentation  Test suite for Open BMC GUI "Notices" menu.
4
5Resource        ../../lib/gui_resource.robot
6
7Suite Setup     Suite Setup Execution
8Suite Teardown  Close Browser
9
10
11*** Variables ***
12
13${xpath_notice_menu}      //*[@data-test-id='nav-item-notices']
14${xpath_notices_header}   //h1[contains(text(), "Notices")]
15
16*** Test Cases ***
17
18Verify Navigate To Notices Page
19    [Documentation]  Login to GUI and perform page navigation to
20    ...  Notices page and verify it loads successfully.
21    [Tags]  Verify_Navigate_To_Notices_Page
22
23    Page Should Contain Element  ${xpath_notices_header}
24
25
26Verify Existence Of All Licenses In Notices Page
27    [Documentation]  Verify all required licenses are available on Notices page.
28    [Tags]  Verify_Existence_Of_All_Licenses_In_Notices_Page
29
30    Page Should Contain  Apache License
31    Page Should Contain  Artistic License
32    Page Should Contain  BSD license
33    Page Should Contain  Boost Software License
34    Page Should Contain  Bzip license
35    Page Should Contain  GNU GENERAL PUBLIC LICENSE
36    Page Should Contain  GCC RUNTIME LIBRARY EXCEPTION
37    Page Should Contain  ISC License
38    Page Should Contain  GNU LIBRARY GENERAL PUBLIC LICENSE
39    Page Should Contain  GNU LESSER GENERAL PUBLIC LICENSE
40    Page Should Contain  MIT License
41    Page Should Contain  Mozilla Public License Version
42    Page Should Contain  OpenLDAP Public License
43    Page Should Contain  OpenSSL License
44    Page Should Contain  PYTHON SOFTWARE FOUNDATION LICENSE
45    Page Should Contain  zlib License
46
47
48*** Keywords ***
49
50Suite Setup Execution
51    [Documentation]  Do suite setup tasks.
52
53    Launch Browser And Login GUI
54    Click Element  ${xpath_notice_menu}
55    Wait Until Keyword Succeeds  30 sec  10 sec  Location Should Contain  notices
56    Wait Until Element Is Not Visible   ${xpath_page_loading_progress_bar}  timeout=30
57