Passed
Push — master ( 09d163...3c33c7 )
by Andrey
14:44
created

HomeCest::ensureThatHomePageWorks()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 10
rs 10
1
<?php
2
3
use yii\helpers\Url;
4
5
class HomeCest
6
{
7
    public function ensureThatHomePageWorks(AcceptanceTester $I)
8
    {
9
        $I->amOnPage(Url::toRoute('/site/index'));        
10
        $I->see('My Company');
11
        
12
        $I->seeLink('About');
13
        $I->click('About');
14
        $I->wait(2); // wait for page to be opened
15
        
16
        $I->see('This is the About page.');
17
    }
18
}
19