Code Duplication    Length = 12-13 lines in 2 locations

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

@@ 65-77 (lines=13) @@
62
        return $this;
63
    }
64
65
    public function コンテキストメニューでセクションに移動($blockName)
66
    {
67
        $this->コンテキストメニューを開く($blockName);
68
        $this->tester->waitForElementVisible(['xpath' => "//div[contains(@id, 'popover')]/div[2]/div/a[3]"]);
69
        $this->tester->wait(1);
70
        $this->tester->click(['xpath' => "//div[contains(@id, 'popover')]/div[2]/div/a[3]"]);
71
        $this->tester->waitForElementVisible(['id' => "move-to-section"]);
72
        $this->tester->wait(1);
73
        $this->tester->click(['id' => "move-to-section"]);
74
        $this->tester->waitForElementNotVisible(['id' => "move-to-section"]);
75
        $this->tester->wait(1);
76
        return $this;
77
    }
78
79
    public function コンテキストメニューでコードプレビュー($blockName, $element = null, $timeout = 10)
80
    {

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

@@ 129-140 (lines=12) @@
126
        return $this;
127
    }
128
129
    public function 商品検索($value = '')
130
    {
131
        $this->tester->scrollTo(['css' => '#orderItem > div > div.row.justify-content-between.mb-2 > div.col-6 > a.btn.btn-ec-regular.mr-2.add'], 0, -50);
132
        $this->tester->click(['css' => '#orderItem > div > div.row.justify-content-between.mb-2 > div.col-6 > a.btn.btn-ec-regular.mr-2.add']);
133
        $this->tester->waitForElement(['id' => 'addProduct']);
134
        $this->tester->wait(1);
135
        $this->tester->fillField(['id' => 'admin_search_product_id'], $value);
136
        $this->tester->click('#searchProductModalButton');
137
        $this->tester->waitForElementVisible('#searchProductModalList table');
138
        $this->tester->wait(1);
139
        return $this;
140
    }
141
142
    public function 商品検索結果_選択($rowNum)
143
    {