Completed
Push — 4.0 ( 7522c1...e20433 )
by Hideki
30s queued 10s
created

OrderStatusSettingsPage::登録()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 6
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 6
loc 6
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 View Code Duplication
class OrderStatusSettingsPage extends AbstractAdminPageStyleGuide
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
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_customer_order_status_name'], $value);
53
54
        return $this;
55
    }
56
57
    public function 入力_色($value)
58
    {
59
        $this->tester->fillField(['id' => 'form_OrderStatuses_0_color'], $value);
60
61
        return $this;
62
    }
63
64
    public function 登録()
65
    {
66
        $this->tester->click('#ex-conversion-action > div > button');
67
68
        return $this;
69
    }
70
}
71