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 |
|
{ |
codeception/_support/Page/Admin/OrderManagePage.php 1 location
|
@@ 192-203 (lines=12) @@
|
| 189 |
|
return $this; |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
public function 出荷済にする($rowNum) |
| 193 |
|
{ |
| 194 |
|
$this->tester->click("#search_result > tbody > tr:nth-child($rowNum) a[data-type='status']"); |
| 195 |
|
$this->tester->waitForElementVisible(['id' => 'sentUpdateModal']); |
| 196 |
|
$this->tester->wait(2); |
| 197 |
|
$this->tester->click(['id' => 'notificationMail']); |
| 198 |
|
$this->tester->scrollTo(['id' => 'bulkChange']); |
| 199 |
|
$this->tester->click(['id' => 'bulkChange']); |
| 200 |
|
$this->tester->wait(5); |
| 201 |
|
$this->tester->waitForElementVisible(['id' => 'bulkChangeComplete']); |
| 202 |
|
return $this; |
| 203 |
|
} |
| 204 |
|
|
| 205 |
|
public function 取得_出荷伝票番号($rowNum) |
| 206 |
|
{ |