init
This commit is contained in:
9
vendor/codeception/base/tests/web/FriendWithStepsCept.php
vendored
Normal file
9
vendor/codeception/base/tests/web/FriendWithStepsCept.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$I = new WebGuy($scenario);
|
||||
$I->wantTo('call friend with steps to ask expert work');
|
||||
$I->amOnPage('/info');
|
||||
$john = $I->haveFriend('john', '\WebGuy\RootWatcherSteps');
|
||||
$john->does(function (WebGuy\RootWatcherSteps $I) {
|
||||
$I->seeInRootPage('Welcome to test app!');
|
||||
});
|
||||
$I->seeInCurrentUrl('/info');
|
||||
10
vendor/codeception/base/tests/web/FriendsCept.php
vendored
Normal file
10
vendor/codeception/base/tests/web/FriendsCept.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
$I = new WebGuy($scenario);
|
||||
$I->wantTo('call friends to try multi session');
|
||||
$I->amOnPage('/info');
|
||||
$jon = $I->haveFriend('jon');
|
||||
$jon->does(function (WebGuy $I) {
|
||||
$I->amOnPage('/');
|
||||
$I->seeInCurrentUrl('/');
|
||||
});
|
||||
$I->seeInCurrentUrl('/info');
|
||||
14
vendor/codeception/base/tests/web/FriendsLeaveCept.php
vendored
Normal file
14
vendor/codeception/base/tests/web/FriendsLeaveCept.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
$I = new WebGuy($scenario);
|
||||
$I->wantTo('test leave bug');
|
||||
$I->amOnPage('/info');
|
||||
|
||||
$jon = $I->haveFriend('jon');
|
||||
$jon->does(function (WebGuy $I) {
|
||||
$I->amOnPage('/');
|
||||
$I->seeInCurrentUrl('/');
|
||||
});
|
||||
$I->see('Information', 'h1');
|
||||
$jon->leave();
|
||||
|
||||
$I->see('Don\'t do that at home');
|
||||
9
vendor/codeception/base/tests/web/ReconfigureWebDriverCept.php
vendored
Normal file
9
vendor/codeception/base/tests/web/ReconfigureWebDriverCept.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$I = new WebGuy($scenario);
|
||||
$I->wantTo('test two different browsers in one test');
|
||||
$I->changeBrowser('chrome');
|
||||
$I->amOnPage('/user-agent');
|
||||
$I->see('Chrome');
|
||||
$I->changeBrowser('firefox');
|
||||
$I->amOnPage('/user-agent');
|
||||
$I->see('Firefox');
|
||||
1128
vendor/codeception/base/tests/web/WebDriverTest.php
vendored
Normal file
1128
vendor/codeception/base/tests/web/WebDriverTest.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
4
vendor/codeception/base/tests/web/_bootstrap.php
vendored
Normal file
4
vendor/codeception/base/tests/web/_bootstrap.php
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
// Here you can initialize variables that will for your tests
|
||||
|
||||
\Codeception\Util\Autoload::registerSuffix('Steps', __DIR__.DIRECTORY_SEPARATOR.'_steps');
|
||||
12
vendor/codeception/base/tests/web/_steps/RootWatcherSteps.php
vendored
Normal file
12
vendor/codeception/base/tests/web/_steps/RootWatcherSteps.php
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace WebGuy;
|
||||
|
||||
class RootWatcherSteps extends \WebGuy
|
||||
{
|
||||
public function seeInRootPage($selector)
|
||||
{
|
||||
$I = $this;
|
||||
$I->amOnPage('/');
|
||||
$I->see($selector);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user