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.
38 lines
1.3 KiB
PHP
38 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace Tests\Browser\Settings;
|
|
|
|
class Preferences extends \Tests\Browser\DuskTestCase
|
|
{
|
|
public function testPreferences()
|
|
{
|
|
$this->browse(function ($browser) {
|
|
$this->go('settings');
|
|
|
|
$objects = $this->getObjects();
|
|
|
|
$this->assertContains('sectionslist', $objects);
|
|
|
|
$browser->assertVisible('#settings-menu li.preferences.selected');
|
|
|
|
// On phone/tablet #sections-table is initially hidden
|
|
if ($this->isPhone() || $this->isTablet()) {
|
|
$browser->assertMissing('#sections-table');
|
|
$browser->click('#settings-menu li.preferences');
|
|
$browser->waitFor('#sections-table');
|
|
}
|
|
|
|
// Preferences actions
|
|
$browser->with('#sections-table', function($browser) {
|
|
$browser->assertSeeIn('tr.general', 'User Interface');
|
|
$browser->assertSeeIn('tr.mailbox', 'Mailbox View');
|
|
$browser->assertSeeIn('tr.mailview', 'Displaying Messages');
|
|
$browser->assertSeeIn('tr.compose', 'Composing Messages');
|
|
$browser->assertSeeIn('tr.addressbook', 'Contacts');
|
|
$browser->assertSeeIn('tr.folders', 'Special Folders');
|
|
$browser->assertSeeIn('tr.server', 'Server Settings');
|
|
});
|
|
});
|
|
}
|
|
}
|