Completed
Pull Request — 4.0 (#4844)
by chihiro
04:49
created

OrderStatusSettingsPage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.ec-cube.co.jp/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Page\Admin;
15
16
class OrderStatusSettingsPage extends AbstractAdminPageStyleGuide
17
{
18
    public static $登録完了メッセージ = '#page_admin_setting_shop_order_status > div.c-container > div.c-contentsArea > div.alert.alert-success.alert-dismissible.fade.show.m-3 > span';
19
20
    /**
21
     * CsvSettingsPage constructor.
22
     */
23
    public function __construct(\AcceptanceTester $I)
24
    {
25
        parent::__construct($I);
26
    }
27
28
    public static function go($I)
29
    {
30
        $page = new self($I);
31
32
        return $page->goPage('/setting/shop/order_status', '受注対応状況設定店舗設定');
33
    }
34
35
    public static function at($I)
36
    {
37
        $page = new self($I);
38
        $page->tester->see('受注対応状況設定店舗設定', '.c-pageTitle');
39
40
        return $page;
41
    }
42
43
    public function 入力_名称($value)
44
    {
45
        $this->tester->fillField(['id' => 'form_OrderStatuses_0_name'], $value);
46
47
        return $this;
48
    }
49
50
    public function 入力_色($value)
51
    {
52
        $this->tester->fillField(['id' => 'form_OrderStatuses_0_color'], $value);
53
54
        return $this;
55
    }
56
57
    public function 登録()
58
    {
59
        $this->tester->click('#ex-conversion-action > div > button');
60
61
        return $this;
62
    }
63
}
64