@@ -12,6 +12,9 @@ |
||
12 | 12 | |
13 | 13 | class DragAndDropBy extends WebDriverActions |
14 | 14 | { |
15 | + /** |
|
16 | + * @param \Facebook\WebDriver\Remote\RemoteWebElement $source |
|
17 | + */ |
|
15 | 18 | public function __construct(WebDriver $driver, $source, $x_offset, $y_offset) |
16 | 19 | { |
17 | 20 | parent::__construct($driver); |
@@ -14,6 +14,9 @@ |
||
14 | 14 | */ |
15 | 15 | private $timeout_in_second; |
16 | 16 | |
17 | + /** |
|
18 | + * @param integer $timeout_in_second |
|
19 | + */ |
|
17 | 20 | function __construct($timeout_in_second) |
18 | 21 | { |
19 | 22 | $this->timeout_in_second = $timeout_in_second; |
@@ -48,12 +48,18 @@ discard block |
||
48 | 48 | return $this; |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param integer $rowNum |
|
53 | + */ |
|
51 | 54 | public function 一覧_編集($rowNum) |
52 | 55 | { |
53 | 56 | $this->tester->click("#search_form > div.c-contentsArea__cols > div > div > div.card.rounded.border-0.mb-4 > div > table > tbody > tr:nth-child(${rowNum}) > td:nth-child(2) > a"); |
54 | 57 | return $this; |
55 | 58 | } |
56 | 59 | |
60 | + /** |
|
61 | + * @param integer $rowNum |
|
62 | + */ |
|
57 | 63 | public function 一覧_削除($rowNum, $execute = true) |
58 | 64 | { |
59 | 65 | $this->tester->click("#search_form > div.c-contentsArea__cols > div > div > div.card.rounded.border-0.mb-4 > div > table > tbody > tr:nth-child(${rowNum}) > td.align-middle.pr-3 > div > div > a"); |
@@ -67,6 +73,9 @@ discard block |
||
67 | 73 | return $this; |
68 | 74 | } |
69 | 75 | |
76 | + /** |
|
77 | + * @param integer $rowNum |
|
78 | + */ |
|
70 | 79 | public function 一覧_仮会員メール再送($rowNum) |
71 | 80 | { |
72 | 81 | $this->tester->click(['xpath' => "//*[@id='search_form']//div/table/tbody/tr[${rowNum}]/td[6]/div/div[1]/a"]); |
@@ -92,6 +101,9 @@ discard block |
||
92 | 101 | $this->tester->click('#search_form > div.c-contentsArea__cols > div > div > div.row.justify-content-between.mb-2 > div.col-5.text-right > div:nth-child(2) > div > button:nth-child(2)'); |
93 | 102 | } |
94 | 103 | |
104 | + /** |
|
105 | + * @param integer $rowNum |
|
106 | + */ |
|
95 | 107 | public function 一覧_会員ID($rowNum) |
96 | 108 | { |
97 | 109 | return $this->tester->grabTextFrom("#search_form > div.c-contentsArea__cols > div > div > div.card.rounded.border-0.mb-4 > div > table > tbody > tr:nth-child(${rowNum}) > td.align-middle.pl-3"); |
@@ -27,6 +27,9 @@ |
||
27 | 27 | class ShoppingLoginPage extends AbstractFrontPage |
28 | 28 | { |
29 | 29 | |
30 | + /** |
|
31 | + * @param \AcceptanceTester $I |
|
32 | + */ |
|
30 | 33 | public static function at($I) |
31 | 34 | { |
32 | 35 | $page = new self($I); |
@@ -162,9 +162,9 @@ discard block |
||
162 | 162 | // 削除 |
163 | 163 | $OrderNumForDel = $OrderListPage->一覧_注文番号(1); |
164 | 164 | $OrderListPage |
165 | - ->一覧_選択(1) |
|
166 | - ->一覧_削除() |
|
167 | - ->Accept_削除(); |
|
165 | + ->一覧_選択(1) |
|
166 | + ->一覧_削除() |
|
167 | + ->Accept_削除(); |
|
168 | 168 | |
169 | 169 | $I->see('受注情報を削除しました', ['css' => '#page_admin_order > div > div.c-contentsArea > div.alert.alert-success.alert-dismissible.fade.show.m-3 > span']); |
170 | 170 | $I->assertNotEquals($OrderNumForDel, $OrderListPage->一覧_注文番号(1)); |
@@ -172,9 +172,9 @@ discard block |
||
172 | 172 | // 削除キャンセル |
173 | 173 | $OrderNumForDontDel = $OrderListPage->一覧_注文番号(1); |
174 | 174 | $OrderListPage |
175 | - ->一覧_選択(1) |
|
176 | - ->一覧_削除() |
|
177 | - ->Cancel_削除(); |
|
175 | + ->一覧_選択(1) |
|
176 | + ->一覧_削除() |
|
177 | + ->Cancel_削除(); |
|
178 | 178 | |
179 | 179 | $I->assertEquals($OrderNumForDontDel, $OrderListPage->一覧_注文番号(1)); |
180 | 180 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | use _generated\UnitTesterActions; |
22 | 22 | |
23 | - /** |
|
24 | - * Define custom actions here |
|
25 | - */ |
|
23 | + /** |
|
24 | + * Define custom actions here |
|
25 | + */ |
|
26 | 26 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | use _generated\FunctionalTesterActions; |
22 | 22 | |
23 | - /** |
|
24 | - * Define custom actions here |
|
25 | - */ |
|
23 | + /** |
|
24 | + * Define custom actions here |
|
25 | + */ |
|
26 | 26 | } |
@@ -33,6 +33,9 @@ |
||
33 | 33 | parent::__construct($I); |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param \AcceptanceTester $I |
|
38 | + */ |
|
36 | 39 | public static function go($I) |
37 | 40 | { |
38 | 41 | $page = new ProductCsvUploadPage($I); |
@@ -25,6 +25,7 @@ |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @param string $type |
28 | + * @param string|null $message |
|
28 | 29 | */ |
29 | 30 | private function __construct($type, $message) |
30 | 31 | { |