for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
* http://www.ec-cube.co.jp/
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Page\Admin;
class ProductCsvUploadPage extends AbstractAdminPageStyleGuide
{
public static $完了メッセージ = '#importCsvModal > div > div > div.modal-body.text-left > p';
/**
* ProductCsvUploadPage constructor.
public function __construct(\AcceptanceTester $I)
parent::__construct($I);
}
public static function go($I)
$page = new ProductCsvUploadPage($I);
return $page->goPage('/product/product_csv_upload', '商品CSV登録商品管理');
public function 入力_CSVファイル($fileName)
$this->tester->attachFile(['id' => 'admin_csv_import_import_file'], $fileName);
return $this;
public function CSVアップロード()
$this->tester->click(['id' => 'upload-button']);
public function CSVアップロード実行()
$this->tester->wait(1);
$this->tester->click(['id' => 'importCsv']);
public function アップロードボタン有効化()
// $this->tester->attachFileでイベントが効かずボタンが有効化されないので、テストコードで有効化する.
$this->tester->waitForJS('return $("#upload-button").prop("disabled", false);', 1);
public function 雛形ダウンロード()
$this->tester->click('#download-button');