Failed Conditions
Push — modify-scrutinizeryml ( 361e25...08b4c1 )
by Kentaro
63:54 queued 57:30
created

PaymentManagePage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace Page\Admin;
5
6
7
class PaymentManagePage extends AbstractAdminPageStyleGuide
8
{
9
10
    public static $登録完了メッセージ = '.c-container .c-contentsArea div.alert-success';
11
12
    public function __construct(\AcceptanceTester $I)
13
    {
14
        parent::__construct($I);
15
    }
16
17
    public static function go($I)
18
    {
19
        $page = new self($I);
20
        return $page->goPage('/setting/shop/payment', '支払方法設定基本情報設定');
21
    }
22
23
    public static function at($I)
24
    {
25
        $page = new self($I);
26
        return $page->atPage('支払方法設定基本情報設定');
27
    }
28
29
    public function 一覧_支払方法($rowNum)
30
    {
31
        $rowNum = $rowNum + 1;
32
        return ".c-contentsArea__primaryCol .c-primaryCol .card-body ul li:nth-child(${rowNum})";
33
    }
34
35
    public function 一覧_下に($rowNum)
36
    {
37
        $rowNum = $rowNum + 1;
38
        $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) .justify-content-around a.action-down ");
39
        return $this;
40
    }
41
42
    public function 一覧_編集($rowNum)
43
    {
44
        $rowNum = $rowNum + 1;
45
        $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum})> div > div:nth-child(2) a ");
46
47
    }
48
49
    public function 一覧_削除($rowNum)
50
    {
51
        $rowNum = $rowNum + 1;
52
        $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) > div > div.col-3.text-right > div > div:nth-child(3) > a");
53
        // accept modal
54
        $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) > div > div.col-3.text-right > div > div:nth-child(3) > div > div > div > div.modal-footer > a:nth-child(2)");
55
    }
56
57
    public function 新規入力()
58
    {
59
        $this->tester->click('.c-contentsArea__primaryCol  button.btn-ec-regular');
60
    }
61
62
    public function 一覧_上に($rowNum)
63
    {
64
        $rowNum = $rowNum + 1;
65
        $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) .justify-content-around a.action-up ");
66
        return $this;
67
    }
68
}