优化(斗鱼领取): 待客服处理提示截图联系客服
This commit is contained in:
@@ -423,7 +423,12 @@ export default function DouyuFulfillmentPage() {
|
|||||||
</section>
|
</section>
|
||||||
) : waitingForSupport ? (
|
) : waitingForSupport ? (
|
||||||
<section className="customer-binding-stage">
|
<section className="customer-binding-stage">
|
||||||
<Alert type="success" showIcon message="待客服处理" />
|
<Alert
|
||||||
|
type="success"
|
||||||
|
showIcon
|
||||||
|
message="资料已提交"
|
||||||
|
description="请截图本页面并联系客服处理"
|
||||||
|
/>
|
||||||
</section>
|
</section>
|
||||||
) : (
|
) : (
|
||||||
<section className="customer-binding-stage">
|
<section className="customer-binding-stage">
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import assert from 'node:assert/strict'
|
||||||
|
import { readFile } from 'node:fs/promises'
|
||||||
|
import test from 'node:test'
|
||||||
|
|
||||||
|
test('斗鱼资料确认后提示客户截图当前页面联系客服', async () => {
|
||||||
|
const page = await readFile(
|
||||||
|
new URL('../src/pages/douyu-fulfillment/DouyuFulfillmentPage.tsx', import.meta.url),
|
||||||
|
'utf8',
|
||||||
|
)
|
||||||
|
const waitingStart = page.indexOf(') : waitingForSupport ? (')
|
||||||
|
const waitingBranch = page.slice(waitingStart, page.indexOf(') : (', waitingStart + 1))
|
||||||
|
|
||||||
|
assert.ok(waitingStart >= 0, '必须找到待客服处理分支')
|
||||||
|
assert.ok(waitingBranch.includes('message="资料已提交"'))
|
||||||
|
assert.ok(waitingBranch.includes('description="请截图本页面并联系客服处理"'))
|
||||||
|
assert.ok(!waitingBranch.includes('message="待客服处理"'))
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user