Code Duplication    Length = 7-10 lines in 9 locations

codeception/_support/Page/Admin/ShippingEditPage.php 1 location

@@ 123-129 (lines=7) @@
120
        return $this;
121
    }
122
123
    public function 商品検索($value = '')
124
    {
125
        $this->tester->click(['xpath' => '//*[@id="shipmentItem"]/div/div/div/button']);
126
        $this->tester->waitForElementVisible(['id' => 'addProduct']);
127
        $this->tester->click(['id' => 'searchItemsButton']);
128
        return $this;
129
    }
130
131
    public function 商品検索結果_選択($rowNum)
132
    {

codeception/_support/Page/Admin/ShippingManagePage.php 3 locations

@@ 85-92 (lines=8) @@
82
        $this->tester->click(['xpath' => "//*[@id='form_bulk']/div[2]/div/table/tbody/tr[${rowNum}]/td[2]/a"]);
83
    }
84
85
    public function 一覧_削除()
86
    {
87
        $this->tester->waitForElementVisible(['xpath' => '//*[@id="btn_bulk"]/button[3]']);
88
        $this->tester->click(['xpath' => '//*[@id="btn_bulk"]/button[3]']);
89
        $this->tester->waitForElementVisible(['xpath' => '//*[@id="btn_bulk_delete"]']);
90
        $this->tester->click(['xpath' => '//*[@id="btn_bulk_delete"]']);
91
        return $this;
92
    }
93
94
    public function 一覧_削除キャンセル()
95
    {
@@ 101-109 (lines=9) @@
98
        return $this;
99
    }
100
101
    public function 一括発送済み更新()
102
    {
103
        $this->tester->waitForElementVisible(['xpath' => '//*[@id="btn_bulk"]/button[2]']);
104
        $this->tester->click(['xpath' => '//*[@id="btn_bulk"]/button[2]']);
105
        $this->tester->wait(3);
106
        $this->tester->click(['id' => 'notificationMail']);
107
        $this->tester->click(['id' => 'bulkChange']);
108
        return $this;
109
    }
110
111
    public function 一括発送済みメール送信()
112
    {
@@ 111-118 (lines=8) @@
108
        return $this;
109
    }
110
111
    public function 一括発送済みメール送信()
112
    {
113
        $this->tester->waitForElementVisible(['xpath' => '//*[@id="btn_bulk"]/button[1]']);
114
        $this->tester->click(['xpath' => '//*[@id="btn_bulk"]/button[1]']);
115
        $this->tester->wait(3);
116
        $this->tester->click(['id' => 'bulkChange']);
117
        return $this;
118
    }
119
120
    public function 一覧_全選択()
121
    {

codeception/_support/Page/Admin/OrderManagePage.php 5 locations

@@ 49-55 (lines=7) @@
46
        return $this;
47
    }
48
49
    public function 受注CSVダウンロード実行()
50
    {
51
        $this->tester->click(['id' => 'csvDownloadDropDown']);
52
        $this->tester->waitForElementVisible(['id' => 'orderCsvDownload']);
53
        $this->tester->click(['id' => 'orderCsvDownload']);
54
        return $this;
55
    }
56
57
    public function 受注CSV出力項目設定()
58
    {
@@ 57-63 (lines=7) @@
54
        return $this;
55
    }
56
57
    public function 受注CSV出力項目設定()
58
    {
59
        $this->tester->click(['id' => 'csvSettingDropDown']);
60
        $this->tester->waitForElementVisible(['id' => 'orderCsvSetting']);
61
        $this->tester->click(['id' => 'orderCsvSetting']);
62
        return $this;
63
    }
64
65
    public function 配送CSVダウンロード実行()
66
    {
@@ 65-71 (lines=7) @@
62
        return $this;
63
    }
64
65
    public function 配送CSVダウンロード実行()
66
    {
67
        $this->tester->click(['id' => 'csvDownloadDropDown']);
68
        $this->tester->waitForElementVisible(['id' => 'shippingCsvDownload']);
69
        $this->tester->click(['id' => 'shippingCsvDownload']);
70
        return $this;
71
    }
72
73
    public function 配送CSV出力項目設定()
74
    {
@@ 73-79 (lines=7) @@
70
        return $this;
71
    }
72
73
    public function 配送CSV出力項目設定()
74
    {
75
        $this->tester->click(['id' => 'csvSettingDropDown']);
76
        $this->tester->waitForElementVisible(['id' => 'shippingCsvSetting']);
77
        $this->tester->click(['id' => 'shippingCsvSetting']);
78
        return $this;
79
    }
80
81
    public function 一覧_編集($rowNum)
82
    {
@@ 142-151 (lines=10) @@
139
        return $this;
140
    }
141
142
    public function 一括メール送信()
143
    {
144
        $this->tester->click(['id' => 'bulkSendMail']);
145
        $this->tester->waitForElementVisible(['id' => 'sentUpdateModal']);
146
        $this->tester->wait(1);
147
        $this->tester->click(['id' => 'bulkChange']);
148
        $this->tester->wait(5);
149
        $this->tester->waitForElementVisible(['id' => 'bulkChangeComplete']);
150
        return $this;
151
    }
152
153
    public function 一覧_注文番号($rowNum)
154
    {