1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Notifications: Made improvements from manual testing

- Added titles for preference pages.
- Added extra check for non-guest for notifications on preferences page.
This commit is contained in:
Dan Brown
2023-08-16 20:15:49 +01:00
parent 565908ef52
commit 79470ea4b7
3 changed files with 7 additions and 2 deletions

View File

@ -15,13 +15,15 @@ class UserPreferencesTest extends TestCase
$resp->assertSee('Edit Profile');
}
public function test_index_view_accessible_but_without_profile_for_guest_user()
public function test_index_view_accessible_but_without_profile_and_notifications_for_guest_user()
{
$this->setSettings(['app-public' => 'true']);
$this->permissions->grantUserRolePermissions($this->users->guest(), ['receive-notifications']);
$resp = $this->get('/preferences');
$resp->assertOk();
$resp->assertSee('Interface Keyboard Shortcuts');
$resp->assertDontSee('Edit Profile');
$resp->assertDontSee('Notification');
}
public function test_interface_shortcuts_updating()
{