Fixed a few more tests

This commit is contained in:
snipe 2020-04-21 21:13:00 -07:00
parent c5e587f33b
commit 82b6d2b31b
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC
5 changed files with 22 additions and 12 deletions

View file

@ -2,7 +2,7 @@
# REQUIRED: BASIC APP SETTINGS # REQUIRED: BASIC APP SETTINGS
# -------------------------------------------- # --------------------------------------------
APP_ENV=testing-ci APP_ENV=testing-ci
APP_DEBUG=true APP_DEBUG=false
APP_KEY=ChangeMe APP_KEY=ChangeMe
APP_URL=http://localhost:8000 APP_URL=http://localhost:8000
APP_TIMEZONE='US/Pacific' APP_TIMEZONE='US/Pacific'

View file

@ -10,10 +10,10 @@
<link rel="shortcut icon" type="image/ico" href="{{ ($snipeSettings) && ($snipeSettings->favicon!='') ? Storage::disk('public')->url('').e($snipeSettings->favicon) : 'favicon.ico' }} "> <link rel="shortcut icon" type="image/ico" href="{{ ($snipeSettings) && ($snipeSettings->favicon!='') ? Storage::disk('public')->url('').e($snipeSettings->favicon) : 'favicon.ico' }} ">
{{-- stylesheets --}} {{-- 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')) }}"> <link rel="shortcut icon" type="image/ico" href="{{ url(asset('favicon.ico')) }}">

View file

@ -11,7 +11,7 @@ class_name: AcceptanceTester
modules: modules:
enabled: enabled:
- WebDriver: - WebDriver:
url: 'https://snipe-it.dev:1337' url: 'https://snipe-it.local:8890'
browser: 'firefox' browser: 'firefox'
- \Helper\Acceptance - \Helper\Acceptance
- Laravel5: - Laravel5:

View file

@ -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]');

View 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]');
}
}