diff --git a/resources/views/business/pages/financial-risk-control/index.blade.php b/resources/views/business/pages/financial-risk-control/index.blade.php index 8d991d36..098e89f1 100644 --- a/resources/views/business/pages/financial-risk-control/index.blade.php +++ b/resources/views/business/pages/financial-risk-control/index.blade.php @@ -3,6 +3,7 @@ 'taobao' => ['label' => '淘系', 'icon' => 'shopping_bag', 'description' => '集中查看淘宝、天猫店铺的违规和处罚风险。'], 'alibaba' => ['label' => '阿里巴巴', 'icon' => 'inventory_2', 'description' => '集中查看阿里巴巴店铺的违规和处罚风险。'], 'jd' => ['label' => '京东', 'icon' => 'local_mall', 'description' => '集中查看京东店铺的违规和处罚风险。'], + 'jingxi' => ['label' => '京喜', 'icon' => 'storefront', 'description' => '集中查看京喜店铺的违规和处罚风险。'], 'pinduoduo' => ['label' => '拼多多', 'icon' => 'grid_view', 'description' => '集中查看拼多多店铺的违规和处罚风险。'], 'douyin' => ['label' => '抖音', 'icon' => 'play_circle', 'description' => '集中查看抖音店铺的违规和处罚风险。'], ]; diff --git a/tests/Feature/Settings/NavigationTest.php b/tests/Feature/Settings/NavigationTest.php index 7ede3a61..d6a42e4e 100644 --- a/tests/Feature/Settings/NavigationTest.php +++ b/tests/Feature/Settings/NavigationTest.php @@ -68,19 +68,16 @@ class NavigationTest extends FeatureTestCase $this->get(route('business.pages.show', [ 'section' => 'financial-risk-control', 'page' => 'store-violation-alert', - ]) . '?platform=jd') + ]) . '?platform=jingxi') ->assertOk() ->assertSeeText('财务经营风险管控') ->assertSeeText('店铺违规信息预警') - ->assertSeeText('淘系') - ->assertSeeText('阿里巴巴') - ->assertSeeText('京东') - ->assertSeeText('拼多多') - ->assertSeeText('抖音') - ->assertSeeText('京东店铺违规信息预警') - ->assertSee('data-active-platform="jd"', false) - ->assertSee('id="financial-risk-control-panel-jd"', false) - ->assertSee('data-platform-tab="jd"', false) + ->assertSeeTextInOrder(['淘系', '阿里巴巴', '京东', '京喜', '拼多多', '抖音']) + ->assertSeeText('京喜店铺违规信息预警') + ->assertSeeText('暂无京喜风险事项') + ->assertSee('data-active-platform="jingxi"', false) + ->assertSee('id="financial-risk-control-panel-jingxi"', false) + ->assertSee('data-platform-tab="jingxi"', false) ->assertSee('/workspace/financial-risk-control/store-violation-alert', false); }