This commit is contained in:
Matt Young 2024-07-03 02:28:30 -05:00
parent 8e6c966ede
commit 81b7e95b36
2 changed files with 28 additions and 0 deletions

View File

@ -38,6 +38,20 @@ it('submits a post request', function () {
'/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 () {
// Arrange
actingAs($this->adminUser);

View File

@ -47,6 +47,20 @@ it('submits a post request', function () {
'/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 () {
// Arrange
actingAs($this->adminUser);