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

ProductCsvUploadPage   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 5
lcom 0
cbo 1

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A go() 0 5 1
A 入力_CSVファイル() 0 5 1
A CSVアップロード() 0 5 1
A 雛形ダウンロード() 0 5 1
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
}