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

NewsEditPage::入力_日付()   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
4
namespace Page\Admin;
5
6
7
class NewsEditPage extends AbstractAdminPage
8
{
9
10
    /**
11
     * NewsRegisterPage constructor.
12
     */
13
    public function __construct(\AcceptanceTester $I)
14
    {
15
        parent::__construct($I);
16
    }
17
18
    public static function of($I)
19
    {
20
        $page = new self($I);
21
        $page->atPage('コンテンツ管理新着情報管理');
22
        $page->tester->see('新着情報登録・編集', '#aside_wrap > div.col-md-9 > div.box > div > h3');
23
        return $page;
24
    }
25
26
    public function 入力_日付($value)
27
    {
28
        $this->tester->executeJS("$('#admin_news_publish_date').val('".$value."').change();");
29
        return $this;
30
    }
31
32
    public function 入力_タイトル($value)
33
    {
34
        $this->tester->fillField(['id' => 'admin_news_title'], $value);
35
        return $this;
36
    }
37
38
    public function 入力_本文($value)
39
    {
40
        $this->tester->fillField(['id' => 'admin_news_description'], $value);
41
        return $this;
42
    }
43
44
    public function 登録()
45
    {
46
        $this->tester->click('#aside_column > div > div > div > div > div > button');
47
        return $this;
48
    }
49
}