mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed a few more tests
This commit is contained in:
parent
c5e587f33b
commit
82b6d2b31b
|
@ -2,7 +2,7 @@
|
|||
# REQUIRED: BASIC APP SETTINGS
|
||||
# --------------------------------------------
|
||||
APP_ENV=testing-ci
|
||||
APP_DEBUG=true
|
||||
APP_DEBUG=false
|
||||
APP_KEY=ChangeMe
|
||||
APP_URL=http://localhost:8000
|
||||
APP_TIMEZONE='US/Pacific'
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
|
||||
<link rel="shortcut icon" type="image/ico" href="{{ ($snipeSettings) && ($snipeSettings->favicon!='') ? Storage::disk('public')->url('').e($snipeSettings->favicon) : 'favicon.ico' }} ">
|
||||
{{-- stylesheets --}}
|
||||
<link rel="stylesheet" href="{{ mix('css/all.css') }}">
|
||||
<link rel="stylesheet" href="{{ url('css/all.css') }}">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="{{ url(mix('css/dist/all.css')) }}">
|
||||
<link rel="stylesheet" href="{{ url('css/dist/all.css') }}">
|
||||
<link rel="shortcut icon" type="image/ico" href="{{ url(asset('favicon.ico')) }}">
|
||||
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ class_name: AcceptanceTester
|
|||
modules:
|
||||
enabled:
|
||||
- WebDriver:
|
||||
url: 'https://snipe-it.dev:1337'
|
||||
url: 'https://snipe-it.local:8890'
|
||||
browser: 'firefox'
|
||||
- \Helper\Acceptance
|
||||
- Laravel5:
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
<?php
|
||||
$I = new AcceptanceTester($scenario);
|
||||
|
||||
$I->wantTo('sign in');
|
||||
$I->amOnPage('/login');
|
||||
$I->see('Please Login');
|
||||
$I->seeElement('input[type=text]');
|
||||
$I->seeElement('input[type=password]');
|
18
tests/acceptance/LoginCest.php
Normal file
18
tests/acceptance/LoginCest.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
class LoginCest
|
||||
{
|
||||
public function _before(AcceptanceTester $I)
|
||||
{
|
||||
}
|
||||
|
||||
// tests
|
||||
public function tryToTest(AcceptanceTester $I)
|
||||
{
|
||||
$I->wantTo('sign in');
|
||||
$I->amOnPage('/login');
|
||||
$I->see(trans('auth/general.login_prompt'));
|
||||
$I->seeElement('input[type=text]');
|
||||
$I->seeElement('input[type=password]');
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue