Passed
Pull Request — master (#5)
by
unknown
14:27
created

HomeCest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 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