| 1 | <?php |
||
| 5 | class OwnersPluginPage extends AbstractAdminPage |
||
| 6 | { |
||
| 7 | |||
| 8 | public static $完了メッセージ = '#main .container-fluid div:nth-child(1) .alert-success'; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * OwnersPluginPage constructor. |
||
| 12 | */ |
||
| 13 | public function __construct(\AcceptanceTester $I) |
||
| 14 | { |
||
| 15 | parent::__construct($I); |
||
| 16 | } |
||
| 17 | |||
| 18 | public static function go($I) |
||
| 19 | { |
||
| 20 | $page = new self($I); |
||
| 21 | return $page->goPage('/store/plugin', 'オーナーズストアプラグイン一覧'); |
||
| 22 | } |
||
| 23 | |||
| 24 | public static function goInstall($I) |
||
| 25 | { |
||
| 26 | $page = new self($I); |
||
| 27 | return $page->goPage('/store/plugin/install', 'オーナーズストアプラグインのアップロード'); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function インストール($fileName) |
||
| 31 | { |
||
| 32 | $this->tester->attachFile(['id' => 'plugin_local_install_plugin_archive'], $fileName); |
||
| 33 | $this->tester->click('#aside_column button'); |
||
| 34 | return $this; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function 有効にする($code) |
||
| 38 | { |
||
| 39 | $this->tester->click(['xpath' => '//div[contains(@class, "plugin-table")]//td[@class="tc"]/p[text()="'.$code.'"]/parent::td/parent::tr/td[@class="tp"]/a[contains(text(), "有効にする")]']); |
||
| 40 | return $this; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function 無効にする($code) |
||
| 44 | { |
||
| 45 | $this->tester->click(['xpath' => '//div[contains(@class, "plugin-table")]//td[@class="tc"]/p[text()="'.$code.'"]/parent::td/parent::tr/td[@class="tp"]/a[contains(text(), "無効にする")]']); |
||
| 46 | return $this; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function 削除($code) |
||
| 50 | { |
||
| 51 | $this->tester->click(['xpath' => '//div[contains(@class, "plugin-table")]//td[@class="tc"]/p[text()="'.$code.'"]/parent::td/parent::tr/td[@class="tp"]/a[contains(text(), "削除")]']); |
||
| 52 | $this->tester->acceptPopup(); |
||
| 53 | return $this; |
||
| 54 | } |
||
| 55 | } |
||
| 56 |