| @@ 152-161 (lines=10) @@ | ||
| 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) |
|
| @@ 172-182 (lines=11) @@ | ||
| 169 | return $this; |
|
| 170 | } |
|
| 171 | ||
| 172 | public function 一覧_メール通知($rowNum) |
|
| 173 | { |
|
| 174 | $this->tester->click(['css' => "#search_result > tbody > tr:nth-child(${rowNum}) > td.align-middle.pr-3.text-center > div > div:nth-child(1) > a"]); |
|
| 175 | $this->tester->waitForElementVisible(['id' => 'sentUpdateModal']); |
|
| 176 | $this->tester->wait(2); |
|
| 177 | $this->tester->scrollTo(['id' => 'bulkChange']); |
|
| 178 | $this->tester->click(['id' => 'bulkChange']); |
|
| 179 | $this->tester->wait(5); |
|
| 180 | $this->tester->waitForElementVisible(['id' => 'bulkChangeComplete']); |
|
| 181 | ||
| 182 | return $this; |
|
| 183 | } |
|
| 184 | ||
| 185 | public function 一覧_選択($rowNum) |
|
| @@ 199-209 (lines=11) @@ | ||
| 196 | return $this; |
|
| 197 | } |
|
| 198 | ||
| 199 | public function 個別メール送信($rowNum) |
|
| 200 | { |
|
| 201 | $this->tester->click(['css' => "#search_result > tbody > tr:nth-child(${rowNum}) > td.align-middle.pr-3.text-center > div > div:nth-child(1) > a"]); |
|
| 202 | $this->tester->waitForElementVisible(['id' => 'sentUpdateModal']); |
|
| 203 | $this->tester->wait(2); |
|
| 204 | $this->tester->scrollTo(['id' => 'bulkChange']); |
|
| 205 | $this->tester->click(['id' => 'bulkChange']); |
|
| 206 | $this->tester->wait(5); |
|
| 207 | $this->tester->waitForElementVisible(['id' => 'bulkChangeComplete']); |
|
| 208 | ||
| 209 | return $this; |
|
| 210 | } |
|
| 211 | ||
| 212 | public function 一括メール送信() |
|
| @@ 99-107 (lines=9) @@ | ||
| 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 登録() |
|
| @@ 172-181 (lines=10) @@ | ||
| 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) |
|
| @@ 35-44 (lines=10) @@ | ||
| 32 | * |
|
| 33 | * @throws \Exception |
|
| 34 | */ |
|
| 35 | public function インストール() |
|
| 36 | { |
|
| 37 | $this->tester->click(['css' => '#plugin-list > div.card-body > div:nth-child(2) > div > button.btn.btn-primary']); |
|
| 38 | $this->tester->waitForElementVisible(['id' => 'installBtn']); |
|
| 39 | $this->tester->click(['id' => 'installBtn']); |
|
| 40 | $this->tester->waitForElementVisible(['css' => '#installModal > div > div > div.modal-footer > a'], 30); |
|
| 41 | $this->tester->click(['css' => '#installModal > div > div > div.modal-footer > a']); |
|
| 42 | ||
| 43 | return PluginManagePage::at($this->tester); |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||