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

PnotifyHelper::closeNotification()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 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