| @@ 16-45 (lines=30) @@ | ||
| 13 | ||
| 14 | namespace Page\Admin; |
|
| 15 | ||
| 16 | class PluginStoreInstallPage extends AbstractAdminPageStyleGuide |
|
| 17 | { |
|
| 18 | public function __construct(\AcceptanceTester $I) |
|
| 19 | { |
|
| 20 | parent::__construct($I); |
|
| 21 | } |
|
| 22 | ||
| 23 | public static function at($I) |
|
| 24 | { |
|
| 25 | $page = new self($I); |
|
| 26 | ||
| 27 | return $page->atPage('インストール確認 オーナーズストア'); |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @return PluginManagePage |
|
| 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 | ||
| @@ 16-45 (lines=30) @@ | ||
| 13 | ||
| 14 | namespace Page\Admin; |
|
| 15 | ||
| 16 | class PluginStoreUpgradePage extends AbstractAdminPageStyleGuide |
|
| 17 | { |
|
| 18 | public function __construct(\AcceptanceTester $I) |
|
| 19 | { |
|
| 20 | parent::__construct($I); |
|
| 21 | } |
|
| 22 | ||
| 23 | public static function at($I) |
|
| 24 | { |
|
| 25 | $page = new self($I); |
|
| 26 | ||
| 27 | return $page->atPage('アップデート オーナーズストア'); |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @return PluginManagePage |
|
| 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 | ||