mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Updated test for #3066
This commit is contained in:
parent
a6b975b168
commit
d46e77c037
|
@ -15,7 +15,7 @@ class AssetModelsCest
|
||||||
{
|
{
|
||||||
$I->wantTo('Test Asset Model Creation');
|
$I->wantTo('Test Asset Model Creation');
|
||||||
$I->lookForwardTo('seeing it load without errors');
|
$I->lookForwardTo('seeing it load without errors');
|
||||||
$I->amOnPage(route('create/model'));
|
$I->amOnPage(route('models.create'));
|
||||||
$I->seeInTitle('Create Asset Model');
|
$I->seeInTitle('Create Asset Model');
|
||||||
$I->see('Create Asset Model', 'h1.pull-left');
|
$I->see('Create Asset Model', 'h1.pull-left');
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ class AssetModelsCest
|
||||||
public function failsEmptyValidation(FunctionalTester $I)
|
public function failsEmptyValidation(FunctionalTester $I)
|
||||||
{
|
{
|
||||||
$I->wantTo("Test Validation Fails with blank elements");
|
$I->wantTo("Test Validation Fails with blank elements");
|
||||||
$I->amOnPage(route('create/model'));
|
$I->amOnPage(route('models.create'));
|
||||||
$I->click('Save');
|
$I->click('Save');
|
||||||
$I->seeElement('.alert-danger');
|
$I->seeElement('.alert-danger');
|
||||||
$I->see('The name field is required.', '.alert-msg');
|
$I->see('The name field is required.', '.alert-msg');
|
||||||
|
@ -45,7 +45,7 @@ class AssetModelsCest
|
||||||
];
|
];
|
||||||
|
|
||||||
$I->wantTo("Test Validation Succeeds");
|
$I->wantTo("Test Validation Succeeds");
|
||||||
$I->amOnPage(route('create/model'));
|
$I->amOnPage(route('models.create'));
|
||||||
|
|
||||||
$I->submitForm('form#create-form', $values);
|
$I->submitForm('form#create-form', $values);
|
||||||
$I->seeRecord('models', $values);
|
$I->seeRecord('models', $values);
|
||||||
|
|
Loading…
Reference in a new issue