48 lines
1.9 KiB
PHP
48 lines
1.9 KiB
PHP
<?php
|
|
|
|
namespace Tests\Feature\Business;
|
|
|
|
use Tests\Feature\FeatureTestCase;
|
|
|
|
class KukaReconciliationPageTest extends FeatureTestCase
|
|
{
|
|
public function test_renders_all_kuka_reconciliation_tabs_with_the_first_tab_active(): void
|
|
{
|
|
$this->loginAs()
|
|
->get(route('business.pages.show', [
|
|
'section' => 'posting-data',
|
|
'page' => 'kuka-reconciliation',
|
|
]))
|
|
->assertOk()
|
|
->assertSeeText('顾家对账')
|
|
->assertSeeText('顾家过账数据')
|
|
->assertSeeText('TOC订单')
|
|
->assertSeeText('灵珊虚拟过账')
|
|
->assertSeeText('顾家ERP商品导入')
|
|
->assertSeeText('开票填写模板-货物-灵珊')
|
|
->assertSeeText('库存管理模板')
|
|
->assertSeeText('灵珊对账单')
|
|
->assertSeeText('欧伯娜对账单')
|
|
->assertSee('data-kuka-reconciliation-tabs', false)
|
|
->assertSee('data-kuka-reconciliation-panel="posting-data"', false)
|
|
->assertSee('data-kuka-reconciliation-panel="oberna-statement"', false)
|
|
->assertSee('id="kuka-reconciliation-tab-posting-data"', false)
|
|
->assertSee('class="kuka-reconciliation-subnav__tab is-active"', false);
|
|
}
|
|
|
|
public function test_kuka_reconciliation_tab_can_open_directly_from_the_url(): void
|
|
{
|
|
$this->loginAs()
|
|
->get(route('business.pages.show', [
|
|
'section' => 'posting-data',
|
|
'page' => 'kuka-reconciliation',
|
|
'reconciliation_view' => 'toc-orders',
|
|
]))
|
|
->assertOk()
|
|
->assertSee('id="kuka-reconciliation-tab-toc-orders"', false)
|
|
->assertSee('class="kuka-reconciliation-subnav__tab is-active"', false)
|
|
->assertSee('data-kuka-reconciliation-panel="toc-orders"', false)
|
|
->assertSeeText('TOC 订单对账页面已建立');
|
|
}
|
|
}
|