Code Duplication    Length = 28-32 lines in 3 locations

codeception/_support/Page/Admin/BlockManagePage.php 1 location

@@ 16-47 (lines=32) @@
13
14
namespace Page\Admin;
15
16
class BlockManagePage extends AbstractAdminPageStyleGuide
17
{
18
    /**
19
     * BlockManagePage constructor.
20
     */
21
    public function __construct(\AcceptanceTester $I)
22
    {
23
        parent::__construct($I);
24
    }
25
26
    public static function go($I)
27
    {
28
        $page = new self($I);
29
30
        return $page->goPage('/content/block', 'ブロック管理コンテンツ管理');
31
    }
32
33
    public function 新規入力()
34
    {
35
        $this->tester->click('#page_admin_content_block > div.c-container > div.c-contentsArea > div.c-contentsArea__cols > div > div > div.row.justify-content-between.mb-2 > div.col-9 > a');
36
    }
37
38
    public function 編集($rowNum)
39
    {
40
        $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)");
41
    }
42
43
    public function 削除($rowNum)
44
    {
45
        $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");
46
    }
47
}
48

codeception/_support/Page/Admin/CustomerAgreementSettingPage.php 1 location

@@ 16-43 (lines=28) @@
13
14
namespace Page\Admin;
15
16
class CustomerAgreementSettingPage extends AbstractAdminPage
17
{
18
    public static $登録完了メッセージ = '#main .container-fluid div:nth-child(1) .alert-success';
19
20
    public function __construct(\AcceptanceTester $I)
21
    {
22
        parent::__construct($I);
23
    }
24
25
    public static function go($I)
26
    {
27
        $page = new self($I);
28
29
        return $page->goPage('/setting/shop/customer_agreement', 'ショップ設定利用規約管理');
30
    }
31
32
    public function 入力_会員規約($value)
33
    {
34
        $this->tester->fillField(['id' => 'customer_agreement_customer_agreement'], $value);
35
36
        return $this;
37
    }
38
39
    public function 登録()
40
    {
41
        $this->tester->click('#form1 #aside_column button');
42
    }
43
}
44

codeception/_support/Page/Front/ShippingEditPage.php 1 location

@@ 16-44 (lines=29) @@
13
14
namespace Page\Front;
15
16
class ShippingEditPage extends AbstractFrontPage
17
{
18
    public function __construct(\AcceptanceTester $I)
19
    {
20
        parent::__construct($I);
21
    }
22
23
    public static function at($I)
24
    {
25
        $page = new self($I);
26
        $page->tester->see('お届け先の変更', 'div.ec-pageHeader h1');
27
28
        return $page;
29
    }
30
31
    public function 入力_姓($value)
32
    {
33
        $this->tester->fillField(['id' => 'shopping_shipping_name_name01'], $value);
34
35
        return $this;
36
    }
37
38
    public function 登録する()
39
    {
40
        $this->tester->click('div.ec-RegisterRole__actions button.ec-blockBtn--action');
41
42
        return $this;
43
    }
44
}
45