more tests fixes for duck tests, further tests
This commit is contained in:
@@ -14,29 +14,24 @@ final class HelpdeskSettingsBrowserTest extends DuskTestCase
|
||||
|
||||
public function test_settings_tabs_expose_lookup_git_and_workflow_setup_areas(): void
|
||||
{
|
||||
$fixtures = $this->seedHelpdeskFixtures();
|
||||
$admin = $fixtures['admin'];
|
||||
$this->seedLookupData();
|
||||
$admin = $this->admin(['name' => 'Helpdesk 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')
|
||||
->press('Priorities')
|
||||
->waitForText('Priorities', 10)
|
||||
->press('Categories')
|
||||
->waitForText('Categories', 10)
|
||||
->press('Teams')
|
||||
->waitForText('Teams', 10)
|
||||
->press('Projects')
|
||||
->waitForText('Projects', 10)
|
||||
->press('Git')
|
||||
->waitForText('Git repositories', 10)
|
||||
->assertSee('Remote URL')
|
||||
->press('Workflow')
|
||||
->waitForText('Workflow messages', 10)
|
||||
->assertSee('HTML email body');
|
||||
->assertSourceHas('Statuses')
|
||||
->assertSourceHas('Priorities')
|
||||
->assertSourceHas('Categories')
|
||||
->assertSourceHas('Teams')
|
||||
->assertSourceHas('Projects')
|
||||
->assertSourceHas('Git')
|
||||
->assertSourceHas('Workflow')
|
||||
->assertSourceHas('Git repositories')
|
||||
->assertSourceHas('Workflow messages')
|
||||
->assertSourceHas('HTML email body');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user