Completed
Push — master ( dd568a...849dfd )
by Dmitry
04:34
created

WaitHelper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A waitForPageUpdate() 0 6 1
1
<?php
2
3
namespace hipanel\tests\_support\Helper;
4
5
6
class WaitHelper extends \Codeception\Module
7
{
8
    /**
9
     * @param int $timeOut
10
     * @throws \Codeception\Exception\ModuleException
11
     */
12
    public function waitForPageUpdate($timeOut = 60): void
13
    {
14
        $I = $this->getModule('WebDriver');
15
16
        $I->waitForJS("return $.active == 0;", $timeOut);
17
    }
18
}
19