Cleanup
This commit is contained in:
parent
8e6c966ede
commit
81b7e95b36
|
|
@ -38,6 +38,20 @@ it('submits a post request', function () {
|
||||||
'/form',
|
'/form',
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
it('has a Create Student submit button', function () {
|
||||||
|
// Arrange
|
||||||
|
actingAs($this->adminUser);
|
||||||
|
// Act & Assert
|
||||||
|
$response = get(route('admin.students.create'));
|
||||||
|
$response->assertOk();
|
||||||
|
$response->assertSeeInOrder([
|
||||||
|
'button',
|
||||||
|
'type',
|
||||||
|
'submit',
|
||||||
|
'Create Student',
|
||||||
|
'/button',
|
||||||
|
], false);
|
||||||
|
});
|
||||||
it('has all needed fields', function () {
|
it('has all needed fields', function () {
|
||||||
// Arrange
|
// Arrange
|
||||||
actingAs($this->adminUser);
|
actingAs($this->adminUser);
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,20 @@ it('submits a post request', function () {
|
||||||
'/form',
|
'/form',
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
it('has a Create User submit button', function () {
|
||||||
|
// Arrange
|
||||||
|
actingAs($this->adminUser);
|
||||||
|
// Act & Assert
|
||||||
|
$response = get(route('admin.users.create'));
|
||||||
|
$response->assertOk();
|
||||||
|
$response->assertSeeInOrder([
|
||||||
|
'button',
|
||||||
|
'type',
|
||||||
|
'submit',
|
||||||
|
'Create User',
|
||||||
|
'/button',
|
||||||
|
], false);
|
||||||
|
});
|
||||||
it('has all needed fields', function () {
|
it('has all needed fields', function () {
|
||||||
// Arrange
|
// Arrange
|
||||||
actingAs($this->adminUser);
|
actingAs($this->adminUser);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue