67 lines
2.3 KiB
PHP
67 lines
2.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Helpdesk\Tests\Browser;
|
|
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Laravel\Dusk\Browser;
|
|
use Modules\Helpdesk\Tests\Concerns\BuildsHelpdeskFixtures;
|
|
use Tests\DuskTestCase;
|
|
|
|
final class HelpdeskSettingsBrowserTest extends DuskTestCase
|
|
{
|
|
use BuildsHelpdeskFixtures;
|
|
use DatabaseMigrations;
|
|
|
|
public function test_settings_tabs_expose_lookup_git_and_workflow_setup_areas(): void
|
|
{
|
|
$this->seedLookupData();
|
|
$admin = $this->admin(['name' => 'Settings Admin']);
|
|
|
|
$this->browse(function (Browser $browser) use ($admin): void {
|
|
$browser->loginAs($admin)
|
|
->visitRoute('helpdesk.settings')
|
|
->waitFor('@helpdesk-settings-manager')
|
|
->assertSee('Support configuration')
|
|
->assertSee('Statuses')
|
|
->assertSee('Priorities')
|
|
->assertSee('Categories')
|
|
->assertSee('Teams')
|
|
->assertSee('Projects')
|
|
->assertSee('Git')
|
|
->assertSee('Workflow')
|
|
->assertSee('Canned')
|
|
->assertSee('SLA')
|
|
->assertSee('Rules')
|
|
->assertSee('Checks')
|
|
->assertSee('Tags')
|
|
->assertSee('Products')
|
|
->press('Git')
|
|
->waitForText('Git repositories')
|
|
->assertSee('Remote URL')
|
|
->press('Workflow')
|
|
->waitForText('Workflow messages')
|
|
->assertSee('HTML email body')
|
|
->press('Canned')
|
|
->waitForText('Canned responses')
|
|
->assertSee('Reply body')
|
|
->press('SLA')
|
|
->waitForText('SLA policies')
|
|
->assertSee('First response minutes')
|
|
->press('Rules')
|
|
->waitForText('Email automation rules')
|
|
->assertSee('Subject contains')
|
|
->press('Checks')
|
|
->waitForText('Checklist templates')
|
|
->assertSee('Checklist items')
|
|
->press('Tags')
|
|
->waitForText('Ticket tags')
|
|
->assertSee('Colour')
|
|
->press('Products')
|
|
->waitForText('Products and services')
|
|
->assertSee('Release/build');
|
|
});
|
|
}
|
|
}
|