Test session ended.
--
-
- - Return to your site - -
- - Start a new test session - -
diff --git a/code/TestSessionController.php b/code/TestSessionController.php index 275a94d..e3650b0 100644 --- a/code/TestSessionController.php +++ b/code/TestSessionController.php @@ -44,7 +44,10 @@ class TestSessionController extends Controller { ); if(!$canAccess) return Security::permissionFailure($this); + Requirements::css('//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css'); + Requirements::css('//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css'); Requirements::javascript('framework/thirdparty/jquery/jquery.js'); + Requirements::javascript('//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js'); Requirements::javascript('testsession/javascript/testsession.js'); } @@ -54,9 +57,9 @@ class TestSessionController extends Controller { public function index() { if($this->environment->isRunningTests()) { - return $this->renderWith('TestSession_inprogress'); + return $this->renderWith('TestSession', 'TestSession_inprogress'); } else { - return $this->renderWith('TestSession_start'); + return $this->renderWith(array('TestSession', 'TestSession_start')); } } @@ -109,7 +112,7 @@ class TestSessionController extends Controller { $this->environment->loadFixtureIntoDb($fixtureFile); } - return $this->renderWith('TestSession_inprogress'); + return $this->renderWith('TestSession', 'TestSession_inprogress'); } /** @@ -161,7 +164,8 @@ class TestSessionController extends Controller { 'StartForm', $fields, new FieldList( - new FormAction('start', 'Start Session') + FormAction::create('start', 'Start Session') + ->addExtraClass('btn btn-primary btn-lg') ) ); diff --git a/templates/Layout/TestSession_end.ss b/templates/Layout/TestSession_end.ss new file mode 100644 index 0000000..b35c842 --- /dev/null +++ b/templates/Layout/TestSession_end.ss @@ -0,0 +1,9 @@ +
Test session ended.
++ Test session in progress. + Click here to end it. +
+Where would you like to start?
+A test session will create a "blank slate" that you can run manual acceptance tests against
+$StartForm \ No newline at end of file diff --git a/templates/TestSession.ss b/templates/TestSession.ss new file mode 100644 index 0000000..fc7ba7f --- /dev/null +++ b/templates/TestSession.ss @@ -0,0 +1,14 @@ + + + + + <% base_tag %> + $MetaTags + + +Test session ended.
-- Test session in progress. - Click here to end it. -
-Where would you like to start?
-Start a new test session
- $StartForm -