Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ui/tests/selenium/dashboard/testDashboardSlaReportWidget.php')
-rw-r--r--ui/tests/selenium/dashboard/testDashboardSlaReportWidget.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/tests/selenium/dashboard/testDashboardSlaReportWidget.php b/ui/tests/selenium/dashboard/testDashboardSlaReportWidget.php
index 175f4cec5b2..39dfebc40f4 100644
--- a/ui/tests/selenium/dashboard/testDashboardSlaReportWidget.php
+++ b/ui/tests/selenium/dashboard/testDashboardSlaReportWidget.php
@@ -1951,16 +1951,17 @@ class testDashboardSlaReportWidget extends testSlaReport {
]
]
],
+ // Months are excluded as strtotime() calculates month substraction incorrectly on he last days on the month.
[
[
'fields' => [
'SLA' => 'SLA Daily',
- 'From' => 'now-1d-1w-1M-1y',
+ 'From' => 'now-1d-1w-1y',
'Show periods' => 3
],
'reporting_period' => 'Daily',
'equivalent_timestamps' => [
- 'From' => 'today - 1 day - 1 week - 1 month - 1 year'
+ 'From' => 'today - 1 day - 1 week - 1 year'
]
]
],
@@ -2030,16 +2031,17 @@ class testDashboardSlaReportWidget extends testSlaReport {
]
]
],
+ // Months are excluded as strtotime() calculates month substraction incorrectly on he last days on the month.
[
[
'fields' => [
'SLA' => 'SLA Daily',
- 'To' => 'now-1d-1w-1M-1y',
+ 'To' => 'now-1d-1w-1y',
'Show periods' => 3
],
'reporting_period' => 'Daily',
'equivalent_timestamps' => [
- 'To' => 'today - 1 day - 1 week - 1 month - 1 year'
+ 'To' => 'now - 1 day - 1 week - 1 year'
]
]
],
@@ -2284,8 +2286,6 @@ class testDashboardSlaReportWidget extends testSlaReport {
// By default the last 20 periods are displayed.
$show_periods = (array_key_exists('Show periods', $data['fields'])) ? $data['fields']['Show periods'] : 20;
-
-
if (array_key_exists('To', $data['fields'])) {
$to_date = $data['fields']['To'];
}