Completed
Push — apply-codeceptions ( 341052...a29855 )
by Kentaro
53:23 queued 21:51
created

ProductCsvUploadPage::go()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Page\Admin;
4
5
class ProductCsvUploadPage extends AbstractAdminPageStyleGuide
6
{
7
    public static $完了メッセージ = 'div.c-container > div.c-contentsArea > div.alert-success';
8
9
    /**
10
     * ProductCsvUploadPage constructor.
11
     */
12
    public function __construct(\AcceptanceTester $I)
13
    {
14
        parent::__construct($I);
15
    }
16
17
    public static function go($I)
18
    {
19
        $page = new ProductCsvUploadPage($I);
20
        return $page->goPage('/product/product_csv_upload', '商品CSV登録商品管理');
21
    }
22
23
    public function 入力_CSVファイル($fileName)
24
    {
25
        $this->tester->attachFile(['id' => 'admin_csv_import_import_file'], $fileName);
26
        return $this;
27
    }
28
29
    public function CSVアップロード()
30
    {
31
        $this->tester->click(['id' => 'upload-button']);
32
        return $this;
33
    }
34
35
    public function 雛形ダウンロード()
36
    {
37
        $this->tester->click('#download-button');
38
        return $this;
39
    }
40
}