You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
991 B
PHTML
34 lines
991 B
PHTML
5 years ago
|
<?php
|
||
|
|
||
|
namespace Tests\Browser\Settings;
|
||
|
|
||
5 years ago
|
use Tests\Browser\Components\App;
|
||
|
|
||
5 years ago
|
class SettingsTest extends \Tests\Browser\TestCase
|
||
5 years ago
|
{
|
||
|
public function testSettings()
|
||
|
{
|
||
|
$this->browse(function ($browser) {
|
||
5 years ago
|
$browser->go('settings');
|
||
5 years ago
|
|
||
|
// task should be set to 'settings'
|
||
5 years ago
|
$browser->with(new App(), function ($browser) {
|
||
|
$browser->assertEnv('task', 'settings');
|
||
|
});
|
||
5 years ago
|
|
||
5 years ago
|
$browser->assertSeeIn('#layout-sidebar .header', 'Settings');
|
||
5 years ago
|
|
||
5 years ago
|
// Sidebar menu
|
||
5 years ago
|
$browser->with('#settings-menu', function($browser) {
|
||
|
$browser->assertSeeIn('li.preferences', 'Preferences');
|
||
|
$browser->assertSeeIn('li.folders', 'Folders');
|
||
|
$browser->assertSeeIn('li.identities', 'Identities');
|
||
|
$browser->assertSeeIn('li.responses', 'Responses');
|
||
|
});
|
||
|
|
||
|
// Task menu
|
||
5 years ago
|
$browser->assertTaskMenu('settings');
|
||
5 years ago
|
});
|
||
|
}
|
||
|
}
|