Skip to content

Commit

Permalink
codeception のエラーを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
pineray committed Aug 21, 2022
1 parent 0758ee5 commit dedc05d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions codeception/_support/Page/Admin/OrderEditPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ public function 注文者パネルを開く()

public function 商品検索($value = '')
{
$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);
$this->tester->click(['css' => '#orderItem > div > div.row.justify-content-between.mb-2 > div.col-6 > a.btn.btn-ec-regular.mr-2.add']);
$this->tester->scrollTo(['css' => '#orderItem > div > div.row.justify-content-between.mb-2 > div.col-6 > a.btn.btn-ec-regular.me-2.add'], 0, -50);
$this->tester->click(['css' => '#orderItem > div > div.row.justify-content-between.mb-2 > div.col-6 > a.btn.btn-ec-regular.me-2.add']);
$this->tester->waitForElementVisible(['id' => 'addProduct']);
$this->tester->fillField(['id' => 'admin_search_product_id'], $value);
$this->tester->click('#searchProductModalButton');
Expand Down Expand Up @@ -187,7 +187,7 @@ public function 明細の項目名を取得($row)
public function 明細を削除($row)
{
$this->tester->scrollTo(['css' => '#order-product']);
$this->tester->click("#table-form-field > tbody > tr:nth-child({$row}) > td.align-middle.text-end.pe-3 > div > div > div.d-inline-block.mr-3 > a");
$this->tester->click("#table-form-field > tbody > tr:nth-child({$row}) > td.align-middle.text-end.pe-3 > div > div > div.d-inline-block.me-3 > a");
$this->tester->waitForElementVisible("#table-form-field > tbody > tr:nth-child({$row}) > td.align-middle.text-end.pe-3 > div > div > div.modal");

return $this;
Expand Down
2 changes: 1 addition & 1 deletion codeception/_support/Page/Admin/TaxManagePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function 一覧_編集($rowNum)

public function 一覧_削除($rowNum)
{
$this->tester->click("table tbody tr:nth-child(${rowNum}) > td.align-middle.action > div > div > div:nth-child(2) > div.d-inline-block.mr-3 > a");
$this->tester->click("table tbody tr:nth-child(${rowNum}) > td.align-middle.action > div > div > div:nth-child(2) > div.d-inline-block.me-3 > a");

// accept modal
$this->tester->waitForElementVisible("table tbody tr:nth-child(${rowNum}) > td.align-middle.action > div > div > div:nth-child(2) > div.modal");
Expand Down

0 comments on commit dedc05d

Please sign in to comment.