- Added a shim to make PhantomJS work with React (temporary workaround) - Removed asset compilation during acceptance testing Closes #111
33 lines
916 B
PHP
33 lines
916 B
PHP
<?php
|
|
|
|
/**
|
|
* Inherited Methods
|
|
* @method void wantToTest($text)
|
|
* @method void wantTo($text)
|
|
* @method void execute($callable)
|
|
* @method void expectTo($prediction)
|
|
* @method void expect($prediction)
|
|
* @method void amGoingTo($argumentation)
|
|
* @method void am($role)
|
|
* @method void lookForwardTo($achieveValue)
|
|
* @method void comment($description)
|
|
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null)
|
|
*
|
|
* @SuppressWarnings(PHPMD)
|
|
*/
|
|
class AcceptanceTester extends \Codeception\Actor {
|
|
use _generated\AcceptanceTesterActions;
|
|
|
|
/**
|
|
* Define custom actions here
|
|
*/
|
|
public function login() {
|
|
if($this->loadSessionSnapshot('login')) return;
|
|
$this->amOnPage('/wp-login.php');
|
|
$this->fillField('Username', getenv('WP_TEST_USER'));
|
|
$this->fillField('Password', getenv('WP_TEST_PASSWORD'));
|
|
$this->click('Log In');
|
|
$this->saveSessionSnapshot('login');
|
|
}
|
|
}
|