@@ 16-37 (lines=22) @@ | ||
13 | ||
14 | namespace Page\Admin; |
|
15 | ||
16 | class PluginLocalInstallPage extends AbstractAdminPageStyleGuide |
|
17 | { |
|
18 | public static function go($I) |
|
19 | { |
|
20 | $page = new self($I); |
|
21 | ||
22 | return $page->goPage('/store/plugin/install', '独自プラグインのアップロードオーナーズストア'); |
|
23 | } |
|
24 | ||
25 | /** |
|
26 | * @param $fileName |
|
27 | * |
|
28 | * @return PluginManagePage |
|
29 | */ |
|
30 | public function アップロード($fileName) |
|
31 | { |
|
32 | $this->tester->attachFile(['id' => 'plugin_local_install_plugin_archive'], $fileName); |
|
33 | $this->tester->click(['css' => '#upload-form > div > div > div > div > div.card-body > div > div > button']); |
|
34 | ||
35 | return PluginManagePage::at($this->tester); |
|
36 | } |
|
37 | } |
|
38 |
@@ 16-45 (lines=30) @@ | ||
13 | ||
14 | namespace Page\Admin; |
|
15 | ||
16 | class ShopSettingPage extends AbstractAdminPageStyleGuide |
|
17 | { |
|
18 | public static $登録完了メッセージ = '#page_admin_setting_shop > div > div.c-contentsArea > div.alert.alert-success.alert-dismissible.fade.show.m-3 > span'; |
|
19 | ||
20 | public function __construct(\AcceptanceTester $I) |
|
21 | { |
|
22 | parent::__construct($I); |
|
23 | } |
|
24 | ||
25 | public static function go($I) |
|
26 | { |
|
27 | $page = new self($I); |
|
28 | ||
29 | return $page->goPage('/setting/shop', '基本設定店舗設定'); |
|
30 | } |
|
31 | ||
32 | public function 入力_会社名($value) |
|
33 | { |
|
34 | $this->tester->fillField(['id' => 'shop_master_company_name'], $value); |
|
35 | ||
36 | return $this; |
|
37 | } |
|
38 | ||
39 | public function 登録() |
|
40 | { |
|
41 | $this->tester->click('#point_form > div.c-conversionArea > div > div > div:nth-child(2) > div > div > button'); |
|
42 | ||
43 | return $this; |
|
44 | } |
|
45 | } |
|
46 |