Method testListView
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function testListView(): void
{
$this->url('index.php?module=Accounts&view=List');
static::assertSame('Accounts', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
$this->logs = self::$recordId = $this->driver->findElement(WebDriverBy::id('Accounts_listView_row_1'))->getAttribute('data-id');
Avoid using static access to class '\vtlib\Functions' in method 'testListView'. Open
}
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Facebook\WebDriver\WebDriverBy' in method 'testAllModules'. Open
static::assertSame('List', $this->driver->findElement(WebDriverBy::id('view'))->getAttribute('value'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Facebook\WebDriver\WebDriverBy' in method 'testListView'. Open
static::assertSame('Accounts', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Json' in method 'testListView'. Open
static::assertSame([[['accountname', 'a', 'YetiForce']]], \App\Json::decode($searchParams));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'vtlib\Functions' in method 'testAllModules'. Open
foreach (vtlib\Functions::getAllModules() as $module) {
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\vtlib\Functions' in method 'testListView'. Open
}
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Facebook\WebDriver\WebDriverBy' in method 'testListView'. Open
$this->driver->findElement(WebDriverBy::name('accountname'))->sendKeys('YetiForce');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\vtlib\Functions' in method 'testListView'. Open
}
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\vtlib\Functions' in method 'testListView'. Open
}
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Facebook\WebDriver\WebDriverBy' in method 'testListView'. Open
$this->logs = self::$recordId = $this->driver->findElement(WebDriverBy::id('Accounts_listView_row_1'))->getAttribute('data-id');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Facebook\WebDriver\WebDriverBy' in method 'testAllModules'. Open
static::assertSame($module['name'], $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Remove this commented out code. Open
// {
- Read upRead up
- Exclude checks
Programmers should not comment out code as it bloats programs and reduces readability.
Unused code should be deleted and can be retrieved from source control history if required.
See
- MISRA C:2004, 2.4 - Sections of code should not be "commented out".
- MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
- MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
- MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"
Define a constant instead of duplicating this literal "value" 3 times. Open
static::assertSame($module['name'], $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "search_params" 3 times. Open
'search_params' => \vtlib\Functions::getQueryParams($this->driver->getCurrentURL())['search_params'],
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Remove this commented out code. Open
// {
- Read upRead up
- Exclude checks
Programmers should not comment out code as it bloats programs and reduces readability.
Unused code should be deleted and can be retrieved from source control history if required.
See
- MISRA C:2004, 2.4 - Sections of code should not be "commented out".
- MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
- MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
- MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"
Remove this commented out code. Open
// $this->driver->findElement(WebDriverBy::cssSelector('[data-type="App\RecordCollectors\Vies"]'))->click();
- Read upRead up
- Exclude checks
Programmers should not comment out code as it bloats programs and reduces readability.
Unused code should be deleted and can be retrieved from source control history if required.
See
- MISRA C:2004, 2.4 - Sections of code should not be "commented out".
- MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
- MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
- MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"
Define a constant instead of duplicating this literal "accountname" 3 times. Open
$this->driver->findElement(WebDriverBy::name('accountname'))->sendKeys('YetiForce');
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "orderby" 3 times. Open
'orderby' => \vtlib\Functions::getQueryParams($this->driver->getCurrentURL())['orderby'],
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Remove this commented out code. Open
// foreach ($this->driver->findElements(WebDriverBy::cssSelector('.js-tabdrop li')) as $element) {
- Read upRead up
- Exclude checks
Programmers should not comment out code as it bloats programs and reduces readability.
Unused code should be deleted and can be retrieved from source control history if required.
See
- MISRA C:2004, 2.4 - Sections of code should not be "commented out".
- MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
- MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
- MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"
Remove this commented out code. Open
// $this->driver->findElement(WebDriverBy::className('js-form-submit-btn'))->click();
- Read upRead up
- Exclude checks
Programmers should not comment out code as it bloats programs and reduces readability.
Unused code should be deleted and can be retrieved from source control history if required.
See
- MISRA C:2004, 2.4 - Sections of code should not be "commented out".
- MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
- MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
- MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"
Remove this commented out code. Open
// {
- Read upRead up
- Exclude checks
Programmers should not comment out code as it bloats programs and reduces readability.
Unused code should be deleted and can be retrieved from source control history if required.
See
- MISRA C:2004, 2.4 - Sections of code should not be "commented out".
- MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
- MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
- MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"
Call to method id
from undeclared class \Facebook\WebDriver\WebDriverBy
Open
static::assertSame('List', $this->driver->findElement(WebDriverBy::id('view'))->getAttribute('value'));
- Exclude checks
Call to method executeScript
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
$this->driver->executeScript('Vtiger_List_Js.triggerListSearch()');
- Exclude checks
Call to method getCurrentURL
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
'url' => $this->driver->getCurrentURL(),
- Exclude checks
Static call to undeclared method \Gui_ViewsTest::assertSame
Open
static::assertSame([[['accountname', 'a', 'YetiForce']]], \App\Json::decode($searchParams));
- Exclude checks
Static call to undeclared method \Gui_ViewsTest::assertSame
Open
static::assertSame($module['name'], $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Exclude checks
Static call to undeclared method \Gui_ViewsTest::assertSame
Open
static::assertSame('Accounts', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Exclude checks
Static call to undeclared method \Gui_ViewsTest::assertNotEmpty
Open
static::assertNotEmpty(self::$recordId);
- Exclude checks
Call to method id
from undeclared class \Facebook\WebDriver\WebDriverBy
Open
static::assertSame($module['name'], $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Exclude checks
Call to method getCurrentURL
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
$searchParams = \vtlib\Functions::getQueryParams($this->driver->getCurrentURL())['search_params'] ?? '[]';
- Exclude checks
Call to method getCurrentURL
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
'url' => $this->driver->getCurrentURL(),
- Exclude checks
Call to method executeScript
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
$this->driver->executeScript("$('.Accounts_listViewHeader_action_LBL_SHOW_MAP').click()");
- Exclude checks
Call to method findElement
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
static::assertSame('List', $this->driver->findElement(WebDriverBy::id('view'))->getAttribute('value'));
- Exclude checks
Call to method name
from undeclared class \Facebook\WebDriver\WebDriverBy
Open
$this->driver->findElement(WebDriverBy::name('accountname'))->sendKeys('YetiForce');
- Exclude checks
Call to method findElement
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
$this->driver->findElement(WebDriverBy::name('accountname'))->sendKeys('YetiForce');
- Exclude checks
Call to method id
from undeclared class \Facebook\WebDriver\WebDriverBy
Open
static::assertSame('Accounts', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Exclude checks
Call to method executeScript
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
$this->driver->executeScript("$('.js-change-order[data-columnname=\"accountname\"]').click()");
- Exclude checks
Call to method executeScript
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
$this->driver->executeScript("$('.Accounts_listViewHeader_action_LBL_SEND_NOTIFICATION').click()");
- Exclude checks
Call to method findElement
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
static::assertSame($module['name'], $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Exclude checks
Call to method findElement
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
static::assertSame('Accounts', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Exclude checks
Call to method findElement
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
$this->logs = self::$recordId = $this->driver->findElement(WebDriverBy::id('Accounts_listView_row_1'))->getAttribute('data-id');
- Exclude checks
Call to method getCurrentURL
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
'url' => $this->driver->getCurrentURL(),
- Exclude checks
Call to method getCurrentURL
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
'search_params' => \vtlib\Functions::getQueryParams($this->driver->getCurrentURL())['search_params'],
- Exclude checks
Call to method id
from undeclared class \Facebook\WebDriver\WebDriverBy
Open
$this->logs = self::$recordId = $this->driver->findElement(WebDriverBy::id('Accounts_listView_row_1'))->getAttribute('data-id');
- Exclude checks
Call to method getCurrentURL
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
'url' => $this->driver->getCurrentURL(),
- Exclude checks
Call to method getCurrentURL
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
'orderby' => \vtlib\Functions::getQueryParams($this->driver->getCurrentURL())['orderby'],
- Exclude checks
Call to method getCurrentURL
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
static::assertSame('ASC', \vtlib\Functions::getQueryParams($this->driver->getCurrentURL())['orderby']['accountname'] ?? '');
- Exclude checks
Call to method getCurrentURL
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
'url' => $this->driver->getCurrentURL(),
- Exclude checks
Call to method executeScript
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
$this->driver->executeScript("$('#menubar_quickCreate_Accounts').click()");
- Exclude checks
Call to method executeScript
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
$this->driver->executeScript("$('.Accounts_listViewHeader_action_BTN_PERMISSION_INSPECTOR').click()");
- Exclude checks
Call to method getCurrentURL
from undeclared class \Facebook\WebDriver\Remote\RemoteWebDriver
Open
'url' => $this->driver->getCurrentURL(),
- Exclude checks
Static call to undeclared method \Gui_ViewsTest::assertSame
Open
static::assertSame('ASC', \vtlib\Functions::getQueryParams($this->driver->getCurrentURL())['orderby']['accountname'] ?? '');
- Exclude checks
Static call to undeclared method \Gui_ViewsTest::assertSame
Open
static::assertSame('List', $this->driver->findElement(WebDriverBy::id('view'))->getAttribute('value'));
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
final class Gui_ViewsTest extends \Tests\GuiBase
- Exclude checks
The class Gui_ViewsTest is not named in CamelCase. Open
final class Gui_ViewsTest extends \Tests\GuiBase
{
/** @var int Record ID */
private static $recordId;
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
Spaces must be used to indent lines; tabs are not allowed Open
* @return void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertSame('Accounts', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->driver->executeScript("$('.js-change-order[data-columnname=\"accountname\"]').click()");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'test' => __METHOD__,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach (vtlib\Functions::getAllModules() as $module) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $recordId;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testAllModules(): void
- Exclude checks
Line exceeds 120 characters; contains 136 characters Open
$this->logs = self::$recordId = $this->driver->findElement(WebDriverBy::id('Accounts_listView_row_1'))->getAttribute('data-id');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->logs = [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing the record list all modules.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertSame($module['name'], $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'test' => __METHOD__,
- Exclude checks
Line exceeds 120 characters; contains 132 characters Open
static::assertSame('ASC', \vtlib\Functions::getQueryParams($this->driver->getCurrentURL())['orderby']['accountname'] ?? '');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->driver->executeScript('Vtiger_List_Js.triggerListSearch()');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->findError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->driver->executeScript("$('.Accounts_listViewHeader_action_BTN_PERMISSION_INSPECTOR').click()");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertSame('List', $this->driver->findElement(WebDriverBy::id('view'))->getAttribute('value'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->url('index.php?module=Accounts&view=List');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing the record list.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertSame([[['accountname', 'a', 'YetiForce']]], \App\Json::decode($searchParams));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->findError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @return void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$searchParams = \vtlib\Functions::getQueryParams($this->driver->getCurrentURL())['search_params'] ?? '[]';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $this->url('index.php?module=Accounts&view=Edit&record=' . $accountModel->getId());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $this->findError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// static::assertSame('Accounts', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/** @var int Record ID */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->driver->executeScript("$('.Accounts_listViewHeader_action_LBL_SEND_NOTIFICATION').click()");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'test' => __METHOD__,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->findError();
- Exclude checks
Line exceeds 120 characters; contains 126 characters Open
static::assertSame($module['name'], $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'orderby' => \vtlib\Functions::getQueryParams($this->driver->getCurrentURL())['orderby'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->findError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'url' => $this->driver->getCurrentURL(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// }
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $this->findError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->logs = $module['name'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testListView(): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->logs = self::$recordId = $this->driver->findElement(WebDriverBy::id('Accounts_listView_row_1'))->getAttribute('data-id');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $this->url('index.php?module=Accounts&view=ListPreview');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $this->findError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// static::assertSame('Edit', $this->driver->findElement(WebDriverBy::tagName('fromView'))->getAttribute('value'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $this->driver->findElement(WebDriverBy::cssSelector('[data-type="App\RecordCollectors\Vies"]'))->click();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $this->driver->findElement(WebDriverBy::className('js-form-submit-btn'))->click();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'url' => $this->driver->getCurrentURL(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'test' => __METHOD__,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->driver->executeScript("$('#menubar_quickCreate_Accounts').click()");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->findError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->driver->findElement(WebDriverBy::name('accountname'))->sendKeys('YetiForce');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->logs = [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'search_params' => \vtlib\Functions::getQueryParams($this->driver->getCurrentURL())['search_params'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $this->url('index.php?module=Accounts&view=Detail&record=' . $accountModel->getId());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $element->click();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// public function testDetailView(): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'url' => $this->driver->getCurrentURL(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertSame('ASC', \vtlib\Functions::getQueryParams($this->driver->getCurrentURL())['orderby']['accountname'] ?? '');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->driver->executeScript("$('.Accounts_listViewHeader_action_LBL_SHOW_MAP').click()");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// static::assertSame($accountModel->getId(), $this->driver->findElement(WebDriverBy::tagName('recordId'))->getAttribute('value'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $this->findError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->url("index.php?module={$module['name']}&view=List");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertNotEmpty(self::$recordId);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->logs = [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// }
- Exclude checks
Line exceeds 120 characters; contains 136 characters Open
// static::assertSame($accountModel->getId(), $this->driver->findElement(WebDriverBy::tagName('recordId'))->getAttribute('value'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'test' => __METHOD__,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'url' => $this->driver->getCurrentURL(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// static::assertSame('Detail', $this->driver->findElement(WebDriverBy::id('view'))->getAttribute('value'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// public function testListViews(): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// static::assertCount(1, \count($this->driver->findElement(WebDriverBy::className('detailViewContainer'))));
- Exclude checks
Line exceeds 120 characters; contains 136 characters Open
// static::assertSame($accountModel->getId(), $this->driver->findElement(WebDriverBy::tagName('recordId'))->getAttribute('value'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $accountModel = \Tests\Base\C_RecordActions::createAccountRecord();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->logs = [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->logs = [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->logs = [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'url' => $this->driver->getCurrentURL(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $this->findError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'url' => $this->driver->getCurrentURL(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// public function testEditView(): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// static::assertSame('Accounts', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// }
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->findError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'test' => __METHOD__,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->findError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// static::assertSame($accountModel->getId(), $this->driver->findElement(WebDriverBy::tagName('recordId'))->getAttribute('value'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// foreach ($this->driver->findElements(WebDriverBy::cssSelector('.js-tabdrop li')) as $element) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// }
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// $accountModel = \Tests\Base\C_RecordActions::createAccountRecord();
- Exclude checks
Class name "Gui_ViewsTest" is not in camel caps format Open
final class Gui_ViewsTest extends \Tests\GuiBase
- Exclude checks