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

@@ 69-75 (lines=7) @@
66
        return $this;
67
    }
68
69
    public function 受注CSVダウンロード実行()
70
    {
71
        $this->tester->click(['id' => 'csvDownloadDropDown']);
72
        $this->tester->waitForElementVisible(['id' => 'orderCsvDownload']);
73
        $this->tester->click(['id' => 'orderCsvDownload']);
74
        return $this;
75
    }
76
77
    public function 受注CSV出力項目設定()
78
    {
@@ 77-83 (lines=7) @@
74
        return $this;
75
    }
76
77
    public function 受注CSV出力項目設定()
78
    {
79
        $this->tester->click(['id' => 'csvSettingDropDown']);
80
        $this->tester->waitForElementVisible(['id' => 'orderCsvSetting']);
81
        $this->tester->click(['id' => 'orderCsvSetting']);
82
        return $this;
83
    }
84
85
    public function 配送CSVダウンロード実行()
86
    {
@@ 85-91 (lines=7) @@
82
        return $this;
83
    }
84
85
    public function 配送CSVダウンロード実行()
86
    {
87
        $this->tester->click(['id' => 'csvDownloadDropDown']);
88
        $this->tester->waitForElementVisible(['id' => 'shippingCsvDownload']);
89
        $this->tester->click(['id' => 'shippingCsvDownload']);
90
        return $this;
91
    }
92
93
    public function 配送CSV出力項目設定()
94
    {
@@ 93-99 (lines=7) @@
90
        return $this;
91
    }
92
93
    public function 配送CSV出力項目設定()
94
    {
95
        $this->tester->click(['id' => 'csvSettingDropDown']);
96
        $this->tester->waitForElementVisible(['id' => 'shippingCsvSetting']);
97
        $this->tester->click(['id' => 'shippingCsvSetting']);
98
        return $this;
99
    }
100
101
    public function 一覧_編集($rowNum)
102
    {
@@ 162-171 (lines=10) @@
159
        return $this;
160
    }
161
162
    public function 一括メール送信()
163
    {
164
        $this->tester->click(['id' => 'bulkSendMail']);
165
        $this->tester->waitForElementVisible(['id' => 'sentUpdateModal']);
166
        $this->tester->wait(1);
167
        $this->tester->click(['id' => 'bulkChange']);
168
        $this->tester->wait(5);
169
        $this->tester->waitForElementVisible(['id' => 'bulkChangeComplete']);
170
        return $this;
171
    }
172
173
    public function 一覧_注文番号($rowNum)
174
    {