Passed
Branch master (3c33c7)
by Andrey
04:31
created

HomeCest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A ensureThatHomePageWorks() 0 10 1
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