Code Duplication    Length = 10-11 lines in 5 locations

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

@@ 152-162 (lines=11) @@
149
        return $this;
150
    }
151
152
    public function 商品検索($value = '')
153
    {
154
        $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);
155
        $this->tester->click(['css' => '#orderItem > div > div.row.justify-content-between.mb-2 > div.col-6 > a.btn.btn-ec-regular.mr-2.add']);
156
        $this->tester->waitForElementVisible(['id' => 'addProduct']);
157
        $this->tester->fillField(['id' => 'admin_search_product_id'], $value);
158
        $this->tester->click('#searchProductModalButton');
159
        $this->tester->waitForElementVisible('#searchProductModalList table');
160
161
        return $this;
162
    }
163
164
    public function 商品検索結果_選択($rowNum)
165
    {

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

@@ 239-249 (lines=11) @@
236
        return $this;
237
    }
238
239
    public function 出荷済にする($rowNum)
240
    {
241
        $this->tester->click("#search_result > tbody > tr:nth-child($rowNum) a[data-type='status']");
242
        $this->tester->waitForElementVisible(['id' => 'sentUpdateModal']);
243
        $this->tester->click(['id' => 'notificationMail']);
244
        $this->tester->scrollTo(['id' => 'bulkChange']);
245
        $this->tester->click(['id' => 'bulkChange']);
246
        $this->tester->waitForElementVisible(['id' => 'bulkChangeComplete']);
247
248
        return $this;
249
    }
250
251
    public function 取得_出荷伝票番号($rowNum)
252
    {

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

@@ 99-108 (lines=10) @@
96
        return $this;
97
    }
98
99
    public function 規格管理()
100
    {
101
        $this->tester->scrollTo(['css' => '#standardConfig > div > div.d-block.text-center > a'], 0, 200);
102
        $this->tester->click(['css' => '#standardConfig > div > div.d-block.text-center > a']);
103
        $this->tester->waitForElement(['css' => '#standardConfig > div > div.d-block.text-center > a']);
104
        $this->tester->wait(1);
105
        $this->tester->click(['css' => '#confirmFormChangeModal > div > div > div.modal-footer > a.btn.btn-ec-conversion']);
106
107
        return $this;
108
    }
109
110
    public function 登録()
111
    {

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

@@ 172-182 (lines=11) @@
169
        return $this;
170
    }
171
172
    public function 商品検索($value = '')
173
    {
174
        $this->tester->scrollTo(['css' => '#shipping-product_1 > div > button'], 0, -50);
175
        $this->tester->click(['css' => '#shipping-product_1 > div > button']);
176
        $this->tester->waitForElementVisible(['id' => 'addProduct']);
177
        $this->tester->fillField(['id' => 'admin_search_product_id'], $value);
178
        $this->tester->click('#searchProductModalButton');
179
        $this->tester->waitForElementVisible('#searchProductModalList table');
180
181
        return $this;
182
    }
183
184
    public function 商品検索結果_選択($rowNum)
185
    {

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

@@ 66-76 (lines=11) @@
63
     *
64
     * @throws \Exception
65
     */
66
    public function ストアプラグイン_削除($pluginCode, $message = '削除が完了しました。')
67
    {
68
        $this->ストアプラグイン_ボタンクリック($pluginCode, '削除');
69
        $this->tester->waitForElementVisible(['id' => 'officialPluginDeleteButton']);
70
        $this->tester->click(['id' => 'officialPluginDeleteButton']);
71
        $this->tester->waitForElementVisible(['css' => '#officialPluginDeleteModal > div > div > div.modal-footer > button:nth-child(3)'], 30);
72
        $this->tester->see($message, ['css' => '#officialPluginDeleteModal > div > div > div.modal-body.text-left > p']);
73
        $this->tester->click(['css' => '#officialPluginDeleteModal > div > div > div.modal-footer > button:nth-child(3)']);
74
75
        return $this;
76
    }
77
78
    /**
79
     * @param $pluginCode