HomepageCest::_before()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace PyzTest\Yves\Application\Presentation\Controller;
11
12
use PyzTest\Yves\Application\ApplicationPresentationTester;
13
use PyzTest\Yves\Application\PageObject\Homepage;
14
15
/**
16
 * Auto-generated group annotations
17
 *
18
 * @group PyzTest
19
 * @group Yves
20
 * @group Application
21
 * @group Presentation
22
 * @group Controller
23
 * @group HomepageCest
24
 * Add your own group annotations below this line
25
 */
26
class HomepageCest
27
{
28
    public function _before(ApplicationPresentationTester $i): void
29
    {
30
        $i->amYves();
31
    }
32
33
    public function testICanOpenHomepage(ApplicationPresentationTester $i): void
34
    {
35
        $i->wantTo('See that i can open the homepage');
36
        $i->amOnPage(Homepage::URL);
37
        $i->canSeeElement('[data-qa="page"]');
38
    }
39
}
40