From 1cbc7da44666bdc8f17145f45ed8dfdeda7040ea Mon Sep 17 00:00:00 2001 From: Mariusz Krzaczkowski Date: Thu, 20 May 2021 10:29:54 +0200 Subject: [PATCH] tests --- tests/Gui/ViewsTest.php | 4 ++-- tests/GuiBase.php | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/Gui/ViewsTest.php b/tests/Gui/ViewsTest.php index 036c84ad2313..91fd40603646 100644 --- a/tests/Gui/ViewsTest.php +++ b/tests/Gui/ViewsTest.php @@ -44,9 +44,9 @@ public function testActions(): void $this->driver->findElement(WebDriverBy::name('accountname'))->sendKeys('demo'); $this->driver->executeScript('Vtiger_List_Js.triggerListSearch()'); $this->findError(); - $this->driver->findElement(WebDriverBy::cssSelector('.js-change-order[data-columnname="accountname"]'))->click(); + $this->driver->executeScript("$('.js-change-order[data-columnname=\"accountname\"]').click()"); $this->findError(); - $this->driver->findElement(WebDriverBy::className('Accounts_listViewHeader_action_BTN_PERMISSION_INSPECTOR '))->click(); + $this->driver->findElement(WebDriverBy::className('Accounts_listViewHeader_action_BTN_PERMISSION_INSPECTOR'))->click(); $this->findError(); $this->driver->findElement(WebDriverBy::className('Accounts_listViewHeader_action_LBL_SHOW_MAP'))->click(); $this->findError(); diff --git a/tests/GuiBase.php b/tests/GuiBase.php index c7c07f8d78a0..8a1855ff5144 100644 --- a/tests/GuiBase.php +++ b/tests/GuiBase.php @@ -105,6 +105,7 @@ public function login(): void { $this->driver->get(\App\Config::main('site_URL') . 'index.php?module=Users&view=Login'); $this->logs = [ + 'test' => __METHOD__, 'url' => $this->driver->getCurrentURL(), 'getPageSource' => $this->driver->getPageSource(), ]; @@ -151,5 +152,10 @@ public function findError(): void } // @codeCoverageIgnoreEnd } + $this->logs = [ + 'test' => __METHOD__, + 'url' => $this->driver->getCurrentURL(), + 'getPageSource' => $source, + ]; } }