| @@ 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 | { |
|
| @@ 110-121 (lines=12) @@ | ||
| 107 | return $this; |
|
| 108 | } |
|
| 109 | ||
| 110 | public function 商品検索($value = '') |
|
| 111 | { |
|
| 112 | $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); |
|
| 113 | $this->tester->click(['css' => '#orderItem > div > div.row.justify-content-between.mb-2 > div.col-6 > a.btn.btn-ec-regular.mr-2.add']); |
|
| 114 | $this->tester->waitForElement(['id' => 'addProduct']); |
|
| 115 | $this->tester->wait(1); |
|
| 116 | $this->tester->fillField(['id' => 'admin_search_product_id'], $value); |
|
| 117 | $this->tester->click('#searchProductModalButton'); |
|
| 118 | $this->tester->waitForElementVisible('#searchProductModalList table'); |
|
| 119 | $this->tester->wait(1); |
|
| 120 | return $this; |
|
| 121 | } |
|
| 122 | ||
| 123 | public function 商品検索結果_選択($rowNum) |
|
| 124 | { |
|