diff options
author | Sergejs Olonkins <sergejs.olonkins@zabbix.com> | 2022-03-04 11:24:16 +0300 |
---|---|---|
committer | Sergejs Olonkins <sergejs.olonkins@zabbix.com> | 2022-03-04 11:24:16 +0300 |
commit | 9acac32ea0309a369976a4021f201d2a7ba74f75 (patch) | |
tree | 855f11a4c523a301451fe0533a38991ca2201067 | |
parent | dee67720e6f45b651ca3033c10284474090b306b (diff) |
.......... [ZBXNEXT-686] fixed ids in dashboard autotests
5 files changed, 24 insertions, 24 deletions
diff --git a/ui/tests/selenium/dashboard/testDashboardGraphWidget.php b/ui/tests/selenium/dashboard/testDashboardGraphWidget.php index b7217b380ee..e4572d68324 100644 --- a/ui/tests/selenium/dashboard/testDashboardGraphWidget.php +++ b/ui/tests/selenium/dashboard/testDashboardGraphWidget.php @@ -105,7 +105,7 @@ class testDashboardGraphWidget extends CWebTest { * @browsers chrome */ public function testDashboardGraphWidget_FormLayout() { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $dashboard = CDashboardElement::find()->one()->edit(); $overlay = $dashboard->addWidget(); $form = $overlay->asForm(); @@ -144,7 +144,7 @@ class testDashboardGraphWidget extends CWebTest { private function validate($data, $tab) { $old_hash = CDBHelper::getHash($this->sql); - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $form = $this->openGraphWidgetConfiguration(CTestArrayHelper::get($data, 'Widget name')); $this->fillDatasets(CTestArrayHelper::get($data, 'Data set')); @@ -1576,7 +1576,7 @@ class testDashboardGraphWidget extends CWebTest { * @dataProvider getCreateData */ public function testDashboardGraphWidget_Create($data) { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $form = $this->openGraphWidgetConfiguration(); $this->fillForm($data, $form); @@ -1877,7 +1877,7 @@ class testDashboardGraphWidget extends CWebTest { * @backup widget */ public function testDashboardGraphWidget_Update($data) { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $form = $this->openGraphWidgetConfiguration('Test cases for update'); $this->fillForm($data, $form); @@ -1900,7 +1900,7 @@ class testDashboardGraphWidget extends CWebTest { $name = 'Test cases for simple update and deletion'; $old_hash = CDBHelper::getHash($this->sql); - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $form = $this->openGraphWidgetConfiguration($name); $form->submit(); COverlayDialogElement::ensureNotPresent(); @@ -2224,7 +2224,7 @@ class testDashboardGraphWidget extends CWebTest { public function testDashboardGraphWidget_cancelDashboardUpdate($data) { $old_hash = CDBHelper::getHash($this->sql); - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $form = $this->openGraphWidgetConfiguration(CTestArrayHelper::get($data, 'Existing widget', [])); $form->fill(CTestArrayHelper::get($data, 'main_fields', [])); $this->fillDataSets($data['Data set']); @@ -2278,7 +2278,7 @@ class testDashboardGraphWidget extends CWebTest { public function testDashboardGraphWidget_cancelWidgetEditing($data) { $old_hash = CDBHelper::getHash($this->sql); - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $form = $this->openGraphWidgetConfiguration(CTestArrayHelper::get($data, 'Existing widget', [])); $form->fill($data['main_fields']); $this->fillDataSets($data['Data set']); @@ -2303,7 +2303,7 @@ class testDashboardGraphWidget extends CWebTest { public function testDashboardGraphWidget_Delete() { $name = 'Test cases for simple update and deletion'; - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $dashboard = CDashboardElement::find()->one(); $widget = $dashboard->edit()->getWidget($name); $this->assertEquals(true, $widget->isEditable()); @@ -2326,7 +2326,7 @@ class testDashboardGraphWidget extends CWebTest { * Test disabled fields in "Data set" tab. */ public function testDashboardGraphWidget_DatasetDisabledFields() { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $form = $this->openGraphWidgetConfiguration(); foreach (['Line', 'Points', 'Staircase', 'Bar'] as $option) { @@ -2361,7 +2361,7 @@ class testDashboardGraphWidget extends CWebTest { * Test "From" and "To" fields in tab "Time period" by check/uncheck "Set custom time period". */ public function testDashboardGraphWidget_TimePeriodDisabledFields() { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $form = $this->openGraphWidgetConfiguration(); $form->selectTab('Time period'); @@ -2376,7 +2376,7 @@ class testDashboardGraphWidget extends CWebTest { * Test enable/disable "Number of rows" field by check/uncheck "Show legend". */ public function testDashboardGraphWidget_LegendDisabledFields() { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $form = $this->openGraphWidgetConfiguration(); $form->selectTab('Legend'); $this->assertEnabledFields('Number of rows'); @@ -2385,7 +2385,7 @@ class testDashboardGraphWidget extends CWebTest { } public function testDashboardGraphWidget_ProblemsDisabledFields() { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $form = $this->openGraphWidgetConfiguration(); $form->selectTab('Problems'); @@ -2455,7 +2455,7 @@ class testDashboardGraphWidget extends CWebTest { * @dataProvider getAxesDisabledFieldsData */ public function testDashboardGraphWidget_AxesDisabledFields($data) { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1030'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10330'); $form = $this->openGraphWidgetConfiguration(); $form->fill($data['Data set']); diff --git a/ui/tests/selenium/dashboard/testDashboardHostAvailabilityWidget.php b/ui/tests/selenium/dashboard/testDashboardHostAvailabilityWidget.php index ccdc37723a4..cb88d95067e 100644 --- a/ui/tests/selenium/dashboard/testDashboardHostAvailabilityWidget.php +++ b/ui/tests/selenium/dashboard/testDashboardHostAvailabilityWidget.php @@ -266,7 +266,7 @@ class testDashboardHostAvailabilityWidget extends CWebTest { * @dataProvider getCreateWidgetData */ public function testDashboardHostAvailabilityWidget_Create($data) { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1010'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10110'); $dashboard = CDashboardElement::find()->one(); $old_widget_count = $dashboard->getWidgets()->count(); @@ -455,7 +455,7 @@ class testDashboardHostAvailabilityWidget extends CWebTest { * @dataProvider getUpdateWidgetData */ public function testDashboardHostAvailabilityWidget_Update($data) { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1010'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10110'); $dashboard = CDashboardElement::find()->one(); $form = $dashboard->getWidget('Reference HA widget')->edit(); @@ -481,7 +481,7 @@ class testDashboardHostAvailabilityWidget extends CWebTest { $initial_values = CDBHelper::getHash($this->sql); // Open a dashboard widget and then save it without applying any changes - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1010'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10110'); $dashboard = CDashboardElement::find()->one(); $form = $dashboard->getWidget('Reference HA widget')->edit(); $form->submit(); @@ -535,7 +535,7 @@ class testDashboardHostAvailabilityWidget extends CWebTest { public function testDashboardHostAvailabilityWidget_Cancel($data) { $old_hash = CDBHelper::getHash($this->sql); - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1010'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10110'); $dashboard = CDashboardElement::find()->one(); // Start updating or creating a widget. @@ -590,7 +590,7 @@ class testDashboardHostAvailabilityWidget extends CWebTest { public function testDashboardHostAvailabilityWidget_Delete() { $name = 'Reference HA widget to delete'; - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1010'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10110'); $dashboard = CDashboardElement::find()->one()->edit(); $widget = $dashboard->getWidget($name); $dashboard->deleteWidget($name); diff --git a/ui/tests/selenium/dashboard/testDashboardProblemsBySeverityWidget.php b/ui/tests/selenium/dashboard/testDashboardProblemsBySeverityWidget.php index 8d258b4fd56..394e822e47c 100644 --- a/ui/tests/selenium/dashboard/testDashboardProblemsBySeverityWidget.php +++ b/ui/tests/selenium/dashboard/testDashboardProblemsBySeverityWidget.php @@ -482,7 +482,7 @@ class testDashboardProblemsBySeverityWidget extends CWebTest { * @dataProvider getCreateWidgetData */ public function testDashboardProblemsBySeverityWidget_Create($data) { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1040'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10440'); $dashboard = CDashboardElement::find()->one(); $old_widget_count = $dashboard->getWidgets()->count(); @@ -1361,7 +1361,7 @@ class testDashboardProblemsBySeverityWidget extends CWebTest { $initial_values = CDBHelper::getHash($this->sql); // Open a dashboard widget and then save it without applying any changes - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1040'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10440'); $dashboard = CDashboardElement::find()->one(); $dashboard->edit(); $form = $dashboard->getWidget('Reference widget')->edit(); @@ -1416,7 +1416,7 @@ class testDashboardProblemsBySeverityWidget extends CWebTest { public function testDashboardProblemsBySeverityWidget_Cancel($data) { $old_hash = CDBHelper::getHash($this->sql); - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1040'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10440'); $dashboard = CDashboardElement::find()->one()->edit(); // Start updating or creating a widget. @@ -1466,7 +1466,7 @@ class testDashboardProblemsBySeverityWidget extends CWebTest { public function testDashboardProblemsBySeverityWidget_Delete() { foreach (['Reference PBS widget to delete', 'Totals reference PBS widget to delete'] as $name) { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1040'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10440'); $dashboard = CDashboardElement::find()->one()->edit(); $widget = $dashboard->getWidget($name); $dashboard->deleteWidget($name); diff --git a/ui/tests/selenium/testPageDashboardWidgets.php b/ui/tests/selenium/testPageDashboardWidgets.php index 117b3b7181e..1cb4289b5e5 100644 --- a/ui/tests/selenium/testPageDashboardWidgets.php +++ b/ui/tests/selenium/testPageDashboardWidgets.php @@ -130,7 +130,7 @@ class testPageDashboardWidgets extends CWebTest { */ public function testPageDashboardWidgets_checkProblemHostsWidget() { // Authorize user and open the page with the desired widget. - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1000'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=100100'); // Find dashboard element. $dashboard = CDashboardElement::find()->one(); diff --git a/ui/tests/selenium/testPageTriggerUrl.php b/ui/tests/selenium/testPageTriggerUrl.php index d73a5bcf073..69b1e61786b 100644 --- a/ui/tests/selenium/testPageTriggerUrl.php +++ b/ui/tests/selenium/testPageTriggerUrl.php @@ -81,7 +81,7 @@ class testPageTriggerUrl extends CWebTest { * Check trigger url in Trigger overview widget. */ public function testPageTriggerUrl_TriggerOverviewWidget($data) { - $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=1020'); + $this->page->login()->open('zabbix.php?action=dashboard.view&dashboardid=10220'); $dashboard = CDashboardElement::find()->one(); $widget = $dashboard->getWidget('Group to check Overview'); |