mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 07:56:07 +01:00
Add first UI test example
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php //[STAMP] 2e76aa3af27348105c7ae6ee2ebe1fae
|
||||
<?php //[STAMP] d2bdd51f4bbf082434dc36c332acdb20
|
||||
namespace _generated;
|
||||
|
||||
// This class was automatically generated by build task
|
||||
|
||||
@@ -8,5 +8,5 @@ class_name: AcceptanceTester
|
||||
modules:
|
||||
enabled:
|
||||
- PhpBrowser:
|
||||
url: http://localhost/myapp
|
||||
url: http://localhost:8080/grav
|
||||
- \Helper\Acceptance
|
||||
7
tests/acceptance/GravCept.php
Normal file
7
tests/acceptance/GravCept.php
Normal 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');
|
||||
Reference in New Issue
Block a user