Skip to content

Commit

Permalink
.......... [ZBX-23270] fixed Selenium tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexv123456 committed Oct 17, 2023
1 parent 3bffbda commit ffe679c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/tests/selenium/actions/testFormAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ public function testFormAction_CheckLayout($data) {
]);

if ($eventsource == EVENT_SOURCE_TRIGGERS && array_key_exists('evaltype', $data)) {
$this->zbxTestAssertElementText('//tr[@data-row_index="0"]//td[@class="wordwrap"]', 'Trigger name contains TEST1');
$this->zbxTestAssertElementText('//tr[@data-row_index="1"]//td[@class="wordwrap"]', 'Trigger name contains TEST2');
$this->zbxTestAssertElementText('//tr[@data-row_index="0"]//td[@class="wordwrap"]', 'Event name contains TEST1');
$this->zbxTestAssertElementText('//tr[@data-row_index="1"]//td[@class="wordwrap"]', 'Event name contains TEST2');
$this->zbxTestAssertElementPresentXpath('//tr[@data-row_index="0"]//button[@type="button" and text()="Remove"]');
$this->zbxTestAssertElementPresentXpath('//tr[@data-row_index="1"]//button[@type="button" and text()="Remove"]');
}
Expand Down Expand Up @@ -1239,7 +1239,7 @@ public static function create() {
'expected conditions' => [
'A' => 'Tag name does not contain Does not contain Tag',
'B' => 'Trigger severity equals Warning',
'C' => 'Trigger name contains trigger'
'C' => 'Event name contains trigger'
],
'operations' => [
[
Expand Down Expand Up @@ -1594,7 +1594,7 @@ public function testFormAction_Create() {
COverlayDialogElement::find()->waitUntilReady()->one();
$condition_form = $this->query('id:popup.condition')->asForm()->one();
$condition_form->submit();
$this->zbxTestAssertElementText('//tr[@data-row_index="0"]//td[@class="wordwrap"]', 'Trigger name contains trigger');
$this->zbxTestAssertElementText('//tr[@data-row_index="0"]//td[@class="wordwrap"]', 'Event name contains trigger');

$this->zbxTestClickXpathWait('//button[text()="Add" and contains(@class, "condition-create")]');
$this->zbxTestLaunchOverlayDialog('New condition');
Expand Down

0 comments on commit ffe679c

Please sign in to comment.