Completed
Pull Request — master (#35)
by Dmitry
11:14
created

PnotifyHelper   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 closeNotification() 0 10 1
1
<?php
2
3
namespace hipanel\tests\_support\Helper;
4
5
use Codeception\Module\WebDriver;
6
7
class PnotifyHelper extends \Codeception\Module
8
{
9
    public function closeNotification(string $text): void
10
    {
11
        /** @var WebDriver $I */
12
        $I = $this->getModule('WebDriver');
13
        $I->waitForElement('.ui-pnotify', 180);
14
        $I->see($text, '.ui-pnotify');
15
        $I->moveMouseOver(['css' => '.ui-pnotify']);
16
        $I->wait(1);
17
        $I->click('//span[@title="Close"]');
18
    }
19
}
20