Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuszkrzaczkowski committed May 20, 2021
1 parent 72e0823 commit 1cbc7da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Gui/ViewsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 6 additions & 0 deletions tests/GuiBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
];
Expand Down Expand Up @@ -151,5 +152,10 @@ public function findError(): void
}
// @codeCoverageIgnoreEnd
}
$this->logs = [
'test' => __METHOD__,
'url' => $this->driver->getCurrentURL(),
'getPageSource' => $source,
];
}
}

0 comments on commit 1cbc7da

Please sign in to comment.