Code Duplication    Length = 8-10 lines in 4 locations

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

@@ 76-83 (lines=8) @@
73
        return $this;
74
    }
75
76
    public function ポップアップを受け入れます($rowNum)
77
    {
78
        $modal = "ul.list-group li:nth-child(${rowNum}) div > div:nth-child(5) > div > div:nth-child(3) div.modal";
79
        $this->tester->waitForElementVisible(['css' => $modal]);
80
        $this->tester->click($modal.' .modal-footer a.btn-ec-delete');
81
82
        return $this;
83
    }
84
}
85

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

@@ 60-68 (lines=9) @@
57
        $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum})> div > div:nth-child(2) a ");
58
    }
59
60
    public function 一覧_削除($rowNum)
61
    {
62
        $rowNum = $rowNum + 1;
63
        $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) > div > div.col-3.text-right > div > a");
64
65
        // accept modal
66
        $this->tester->waitForElementVisible('#DeleteModal');
67
        $this->tester->click('#DeleteModal > div > div > div.modal-footer > a');
68
    }
69
70
    public function 新規入力()
71
    {

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

@@ 196-203 (lines=8) @@
193
        return $this;
194
    }
195
196
    public function Accept_複製する($rowNum)
197
    {
198
        $modalCssSelector = "#page_admin_product > div.c-container > div.c-contentsArea > div.c-contentsArea__cols > div > div > form > div.card.rounded.border-0.mb-4 > div.card-body.p-0 > table > tbody > tr:nth-child(${rowNum}) > td.align-middle.pr-3 > div > div:nth-child(2) div.modal";
199
        $this->tester->waitForElementVisible(['css' => $modalCssSelector]);
200
        $this->tester->click($modalCssSelector.' div.modal-footer a.btn-ec-conversion');
201
202
        return $this;
203
    }
204
205
    public function Accept_削除($rowNum)
206
    {

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

@@ 77-86 (lines=10) @@
74
        return $this;
75
    }
76
77
    public function 一覧_削除($rowNum)
78
    {
79
        $this->tester->click("table tbody tr:nth-child(${rowNum}) > td.align-middle.action > div > div > div:nth-child(2) > div.d-inline-block.mr-3 > a");
80
81
        // accept modal
82
        $this->tester->waitForElementVisible("table tbody tr:nth-child(${rowNum}) > td.align-middle.action > div > div > div:nth-child(2) > div.modal");
83
        $this->tester->click("table tbody tr:nth-child(${rowNum}) > td.align-middle.action > div > div > div:nth-child(2) > div.modal.fade.show > div > div > div.modal-footer > a");
84
85
        return $this;
86
    }
87
88
    public function 一覧_税率($rowNum)
89
    {