Code Duplication    Length = 10-12 lines in 5 locations

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

@@ 129-138 (lines=10) @@
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->waitForElementVisible(['id' => 'addProduct']);
134
        $this->tester->fillField(['id' => 'admin_search_product_id'], $value);
135
        $this->tester->click('#searchProductModalButton');
136
        $this->tester->waitForElementVisible('#searchProductModalList table');
137
        return $this;
138
    }
139
140
    public function 商品検索結果_選択($rowNum)
141
    {

codeception/_support/Page/Admin/OrderManagePage.php 3 locations

@@ 145-155 (lines=11) @@
142
        return $this;
143
    }
144
145
    public function 一覧_メール通知($rowNum)
146
    {
147
        $this->tester->click(['css' => "#search_result > tbody > tr:nth-child(${rowNum}) > td.align-middle.pr-3.text-center > div > div:nth-child(1) > a"]);
148
        $this->tester->waitForElementVisible(['id' => 'sentUpdateModal']);
149
        $this->tester->wait(2);
150
        $this->tester->scrollTo(['id' => 'bulkChange']);
151
        $this->tester->click(['id' => 'bulkChange']);
152
        $this->tester->wait(5);
153
        $this->tester->waitForElementVisible(['id' => 'bulkChangeComplete']);
154
        return $this;
155
    }
156
157
    public function 一覧_選択($rowNum)
158
    {
@@ 170-180 (lines=11) @@
167
    }
168
169
170
    public function 個別メール送信($rowNum)
171
    {
172
        $this->tester->click(['css' => "#search_result > tbody > tr:nth-child(${rowNum}) > td.align-middle.pr-3.text-center > div > div:nth-child(1) > a"]);
173
        $this->tester->waitForElementVisible(['id' => 'sentUpdateModal']);
174
        $this->tester->wait(2);
175
        $this->tester->scrollTo(['id' => 'bulkChange']);
176
        $this->tester->click(['id' => 'bulkChange']);
177
        $this->tester->wait(5);
178
        $this->tester->waitForElementVisible(['id' => 'bulkChangeComplete']);
179
        return $this;
180
    }
181
182
    public function 一括メール送信()
183
    {
@@ 212-223 (lines=12) @@
209
        return $this;
210
    }
211
212
    public function 出荷済にする($rowNum)
213
    {
214
        $this->tester->click("#search_result > tbody > tr:nth-child($rowNum) a[data-type='status']");
215
        $this->tester->waitForElementVisible(['id' => 'sentUpdateModal']);
216
        $this->tester->wait(2);
217
        $this->tester->click(['id' => 'notificationMail']);
218
        $this->tester->scrollTo(['id' => 'bulkChange']);
219
        $this->tester->click(['id' => 'bulkChange']);
220
        $this->tester->wait(5);
221
        $this->tester->waitForElementVisible(['id' => 'bulkChangeComplete']);
222
        return $this;
223
    }
224
225
    public function 取得_出荷伝票番号($rowNum)
226
    {

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

@@ 150-159 (lines=10) @@
147
        return $this;
148
    }
149
150
    public function 商品検索($value = '')
151
    {
152
        $this->tester->scrollTo(['css' => '#shipping-product_1 > div > button'], 0, -50);
153
        $this->tester->click(['css' => '#shipping-product_1 > div > button']);
154
        $this->tester->waitForElementVisible(['id' => 'addProduct']);
155
        $this->tester->fillField(['id' => 'admin_search_product_id'], $value);
156
        $this->tester->click('#searchProductModalButton');
157
        $this->tester->waitForElementVisible('#searchProductModalList table');
158
        return $this;
159
    }
160
161
    public function 商品検索結果_選択($rowNum)
162
    {