新建预约必填与默认值调整:款式名称必填加星标,价格空值默认0、时长空值默认60,移除名称为空回退客户姓名/散客款式,非必填标签统一(选填)
自动发布开发环境 Nacos 配置 / publish (push) Successful in 26s
自动发布开发环境 Nacos 配置 / publish (push) Successful in 26s
This commit is contained in:
@@ -114,16 +114,19 @@ page.data.form.manualProductImageFileIds = ''
|
||||
page.openManualProduct()
|
||||
page.confirmManualProduct()
|
||||
assert.strictEqual(page.data.manualProductSheetVisible, true)
|
||||
assert.strictEqual(toastMessages.pop(), '请填写款式名称或添加图片')
|
||||
assert.strictEqual(toastMessages.pop(), '请填写款式名称')
|
||||
|
||||
page.data.form.manualProductTitle = '手绘款'
|
||||
page.data.form.amount = ''
|
||||
page.data.form.durationMinutes = ''
|
||||
page.openManualProduct()
|
||||
page.confirmManualProduct()
|
||||
assert.strictEqual(page.data.manualProductSheetVisible, true)
|
||||
assert.strictEqual(toastMessages.pop(), '请输入不小于0的预约金额')
|
||||
assert.strictEqual(page.data.manualProductSheetVisible, false)
|
||||
assert.strictEqual(page.data.form.amount, '0')
|
||||
assert.strictEqual(page.data.form.durationMinutes, '60')
|
||||
page.data.form.amount = '128'
|
||||
page.data.form.durationMinutes = '0'
|
||||
page.openManualProduct()
|
||||
page.confirmManualProduct()
|
||||
assert.strictEqual(page.data.manualProductSheetVisible, true)
|
||||
assert.strictEqual(toastMessages.pop(), '请输入大于0分钟的预计时长')
|
||||
@@ -136,14 +139,17 @@ const wxss = require('fs').readFileSync(require('path').join(__dirname, 'index.w
|
||||
assert.ok(wxml.indexOf('美甲款式') < wxml.indexOf('预约信息'))
|
||||
assert.ok(wxml.indexOf('预约信息') < wxml.indexOf('>客户</text>'))
|
||||
assert.match(wxml, /class="appointment-hero"/)
|
||||
assert.match(wxml, /placeholder="留空时默认使用客户姓名"/)
|
||||
assert.match(wxml, /placeholder="请输入款式名称"/)
|
||||
assert.match(wxml, /appointmentDateBadge/)
|
||||
assert.match(wxml, /class="customer-fields"/)
|
||||
assert.match(wxml, /class="manual-style-sheet"/)
|
||||
assert.match(wxml, /名称<\/text><text class="manual-style-character-count">\s*\{\{manualProductTitleLength\}\} \/ 100/)
|
||||
assert.match(wxml, /class="required-mark required-mark-before">\*<\/text><text>款式名称<\/text><text class="manual-style-character-count">\s*\{\{manualProductTitleLength\}\} \/ 100/)
|
||||
assert.match(wxml, /maxlength="100"[^>]*bindinput="onStyleTitleInput"/)
|
||||
assert.match(wxml, /disabled="\{\{form\.productId\}\}" bindinput="onStyleTitleInput"/)
|
||||
assert.match(wxml, /class="manual-style-price-duration-row"/)
|
||||
assert.match(wxml, /价格(选填)/)
|
||||
assert.match(wxml, /预计时长(选填)/)
|
||||
assert.match(wxml, /款式图片(选填)/)
|
||||
assert.match(wxml, /data-field="amount" bindinput="onInput" placeholder="例如 268" \/><text>元/)
|
||||
assert.match(wxml, /data-field="durationMinutes" bindinput="onInput" placeholder="60" \/><text>分钟/)
|
||||
assert.match(wxml, /class="manual-style-description-field"/)
|
||||
|
||||
Reference in New Issue
Block a user