Add first UI test example

This commit is contained in:
Flavio Copes
2016-01-10 19:10:52 +01:00
parent c43f253805
commit 7c7df2240b
3 changed files with 9 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
<?php //[STAMP] 2e76aa3af27348105c7ae6ee2ebe1fae
<?php //[STAMP] d2bdd51f4bbf082434dc36c332acdb20
namespace _generated;
// This class was automatically generated by build task

View File

@@ -8,5 +8,5 @@ class_name: AcceptanceTester
modules:
enabled:
- PhpBrowser:
url: http://localhost/myapp
url: http://localhost:8080/grav
- \Helper\Acceptance

View File

@@ -0,0 +1,7 @@
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo('perform actions and see result');
$I->amOnPage('/');
$I->seeInTitle("Home | Grav");
$I->click('ul.navigation li:nth-child(6) a');
$I->seeCurrentUrlEquals('/grav/typography');