for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Page\Admin;
class BlockEditPage extends AbstractAdminPageStyleGuide
{
public static $登録完了メッセージ = 'body > div.c-container > div.c-contentsArea > div.alert.alert-success.alert-dismissible.fade.show.m-3 > span';
/**
* BlockEditPage constructor.
*/
public function __construct(\AcceptanceTester $I)
parent::__construct($I);
}
public static function at($I)
$page = new self($I);
$page->atPage('ブロック管理コンテンツ管理');
$page->tester->see('ブロック編集', '#content_block_form > div.c-contentsArea__cols > div > div > div > div.card-header > div > div.col-8 > span');
return $page;
public function 入力_ブロック名($value)
$this->tester->fillField(['id' => 'block_name'], $value);
return $this;
public function 入力_ファイル名($value)
$this->tester->fillField(['id' => 'block_file_name'], $value);
public function 入力_データ($value)
$value = preg_replace("/([^\\\])'/", "$1\\'", $value);
$this->tester->executeJS("ace.edit('editor').setValue('$value')");
public function 登録()
$this->tester->click('#content_block_form > div.c-conversionArea > div > div > div:nth-child(2) > div > div > button');