blob: a035316356fa8d0594de56780109145a84692b5e [file] [log] [blame]
Sivas SRR008dcc62018-02-27 06:34:56 -06001*** Settings ***
2
3Documentation Test Open BMC GUI server health under GUI Header.
4
5Resource ../../lib/resource.robot
6Resource ../../../../lib/boot_utils.robot
7
8Suite Setup Launch Browser And Login OpenBMC GUI
9Suite Teardown Logout And Close Browser
10Test Setup Click Element ${xpath_select_server_health}
11
12*** Test Cases ***
13
14Verify Event Log Text Appears By Clicking Server Health
15 [Documentation] Check that "Event Log" text appears by clicking server
16 ... health in GUI header.
17 [Tags] Verify_Event_Log_Text_Appears_By_Clicking_Server_Health
18
19 Wait Until Page Contains Element event-log
20 Page should contain Event log
21
22
23Verify Filters By Severity Elements Appears
Sivas SRR179208e2018-03-01 04:08:23 -060024 [Documentation] Check that the "event log" filters appears by clicking
25 ... server health in GUI header.
Sivas SRR008dcc62018-02-27 06:34:56 -060026 [Tags] Verify_Filters_By_Severity_Elements_Appears
27
28 # Types of event severity: All, High, Medium, Low.
29 Page Should Contain Element ${xpath_event_severity_all} limit=1
30 Page Should Contain Element ${xpath_event_severity_high} limit=1
31 Page Should Contain Element ${xpath_event_severity_medium} limit=1
32 Page Should Contain Element ${xpath_event_severity_low} limit=1
33
34
35Verify Drop Down Button User Timezone Appears
Sivas SRR179208e2018-03-01 04:08:23 -060036 [Documentation] Check that the "drop down" button of user timezone appears
37 ... by clicking server health in GUI header.
Sivas SRR008dcc62018-02-27 06:34:56 -060038 [Tags] Verify_Drop_Down_Button_User_Timezone_Appears
39
40 Page Should Contain Button ${xpath_drop_down_timezone_edt}
41 # Ensure that page is not in refreshing state.
42 # It helps to click the drop down element.
43 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
44 Click Element class:dropdown__button
45 Page Should Contain Button ${xpath_drop_down_timezone_utc}
46
Sivas SRR179208e2018-03-01 04:08:23 -060047
48Verify Content Search Element Appears
49 [Documentation] Check that the "event search element is available with
50 ... filter" button appears.
51 [Tags] Verify_Content_Search_Element_Appears
52
53 Page Should Contain Element content__search-input limit=1
54 # Ensure that page is not in refreshing state.
55 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
56 Page Should Contain Button content__search-submit
57
58
59Verify Filter By Date Element Appears
60 [Documentation] Check that the "filter by date" elements are available and
61 ... visible.
62 [Tags] Verify_Filter_By_Date_Element_Appears
63
64 Wait Until Element Is Visible event-filter-start-date
65 Page Should Contain Element event-filter-start-date limit=1
66 Page Should Contain Element event-filter-end-date limit=1
67
68
69Verify Filter By Event Status Element Appears
70 [Documentation] Check that the "filter by event status" element appears.
71 [Tags] Verify_Filter_By_Event_Status_Element_Appears
72
73 # Ensure that page is not in refreshing state.
74 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
75 Wait Until Element is Visible class:dropdown__wrapper
76 Click Element class:dropdown__wrapper
77 Page Should Contain Element ${xpath_event_filter_all} limit=1
78 Page Should Contain Element ${xpath_event_filter_resolved} limit=1
79 Page Should Contain Element ${xpath_event_filter_unresolved} limit=1