Failed Conditions
Pull Request — experimental/sf (#3236)
by Kentaro
142:37 queued 134:37
created

BlockManagePage   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 33
rs 10
c 0
b 0
f 0
wmc 5
lcom 0
cbo 1
1
<?php
2
3
4
namespace Page\Admin;
5
6
7
class BlockManagePage extends AbstractAdminPageStyleGuide
8
{
9
10
    /**
11
     * BlockManagePage constructor.
12
     */
13
    public function __construct(\AcceptanceTester $I)
14
    {
15
        parent::__construct($I);
16
    }
17
18
    public static function go($I)
19
    {
20
        $page = new self($I);
21
        return $page->goPage('/content/block', 'ブロック管理コンテンツ管理');
22
    }
23
24
    public function 新規入力()
25
    {
26
        $this->tester->click('#page_admin_content_block > div > div.c-contentsArea > div.c-contentsArea__cols > div > div.card.rounded.border-0 > div > div > a');
27
    }
28
29
    public function 編集($rowNum)
30
    {
31
        $this->tester->click("#page_admin_content_block > div > div.c-contentsArea > div.c-contentsArea__cols > div > div.c-primaryCol > div > div > div > ul > li:nth-child(${rowNum}) > div > div.col-auto.text-right > a:nth-child(1)");
32
    }
33
34
    public function 削除($rowNum)
35
    {
36
        $this->tester->click("#page_admin_content_block > div > div.c-contentsArea > div.c-contentsArea__cols > div > div.c-primaryCol > div > div > div > ul > li:nth-child(${rowNum}) > div > div.col-auto.text-right > a.btn.btn-ec-actionIcon.mr-3.disabled");
37
    }
38
39
}
40