Code Duplication    Length = 15-16 lines in 4 locations

codeception/acceptance/EA08SysteminfoCest.php 4 locations

@@ 112-126 (lines=15) @@
109
        $I->dontSee('admintest2', '#search_result tbody tr:nth-child(1) td:nth-child(1)');
110
    }
111
112
    public function systeminfo_メンバー管理登録異常(\AcceptanceTester $I)
113
    {
114
        $I->wantTo('EA0803-UC01-T03 メンバー管理 - 登録 - 異常パターン');
115
116
        // 表示
117
        $config = Fixtures::get('config');
118
        $I->amOnPage('/'.$config['eccube_admin_route'].'/setting/system/member');
119
        $I->see('メンバー管理システム設定', '.c-pageTitle');
120
121
        $I->click('#ex-member-new > a');
122
        $I->see('メンバー登録', '#member_form .c-contentsArea__primaryCol .card-header .card-title');
123
124
        $I->click('#member_form .c-conversionArea__container button');
125
        $I->see('入力されていません。', '#member_form div:nth-child(1) div');
126
    }
127
128
    public function systeminfo_メンバー管理編集実施(\AcceptanceTester $I)
129
    {
@@ 188-202 (lines=15) @@
185
        $I->see('入力されていません。', '#member_form div:nth-child(1) div');
186
    }
187
188
    public function systeminfo_メンバー管理登録下へ(\AcceptanceTester $I)
189
    {
190
        $I->wantTo('EA0802-UC01-T02 メンバー管理 - 下へ');
191
192
        // 表示
193
        $config = Fixtures::get('config');
194
        $I->amOnPage('/'.$config['eccube_admin_route'].'/setting/system/member');
195
        $I->see('メンバー管理システム設定', '.c-pageTitle');
196
197
        $I->click('.c-primaryCol .card-body table tbody tr:nth-child(1) td:nth-child(5) .action-down');
198
199
        $I->waitForElementNotVisible(['css' => '.modal-backdrop']);
200
201
        $I->see('管理者', '.c-primaryCol .card-body table tbody tr:nth-child(1) td:nth-child(1)');
202
    }
203
204
    public function systeminfo_メンバー管理登録上へ(\AcceptanceTester $I)
205
    {
@@ 204-218 (lines=15) @@
201
        $I->see('管理者', '.c-primaryCol .card-body table tbody tr:nth-child(1) td:nth-child(1)');
202
    }
203
204
    public function systeminfo_メンバー管理登録上へ(\AcceptanceTester $I)
205
    {
206
        $I->wantTo('EA0802-UC01-T03 メンバー管理 - 上へ');
207
208
        // 表示
209
        $config = Fixtures::get('config');
210
        $I->amOnPage('/'.$config['eccube_admin_route'].'/setting/system/member');
211
        $I->see('メンバー管理システム設定', '.c-pageTitle');
212
213
        $I->click('.c-primaryCol .card-body table tbody tr:nth-child(2) td:nth-child(5) .action-up');
214
215
        $I->waitForElementNotVisible(['css' => '.modal-backdrop']);
216
217
        $I->see('管理者', '.c-primaryCol .card-body table tbody tr:nth-child(2) td:nth-child(1)');
218
    }
219
220
    public function systeminfo_メンバー管理削除(\AcceptanceTester $I)
221
    {
@@ 220-235 (lines=16) @@
217
        $I->see('管理者', '.c-primaryCol .card-body table tbody tr:nth-child(2) td:nth-child(1)');
218
    }
219
220
    public function systeminfo_メンバー管理削除(\AcceptanceTester $I)
221
    {
222
        $I->wantTo('EA0802-UC01-T06 メンバー管理 - 削除');
223
224
        // 表示
225
        $config = Fixtures::get('config');
226
        $I->amOnPage('/'.$config['eccube_admin_route'].'/setting/system/member');
227
        $I->see('メンバー管理システム設定', '.c-pageTitle');
228
229
        $I->click('.c-primaryCol .card-body table tbody tr:nth-child(1) td:nth-child(5) .action-delete');
230
        $I->waitForElementVisible(['css' => '.c-primaryCol .card-body table tbody tr:nth-child(1) .modal']);
231
        $I->click('.c-primaryCol .card-body table tbody tr:nth-child(1) .modal .btn-ec-delete');
232
233
        $I->see('削除しました', '.c-contentsArea .alert-success');
234
        $I->see('管理者', '.c-primaryCol .card-body table tbody tr:nth-child(1) td:nth-child(1)');
235
    }
236
237
    public function systeminfo_メンバー管理自ユーザー削除(\AcceptanceTester $I)
238
    {