完善店员申请关联与预约页面
This commit is contained in:
@@ -123,9 +123,10 @@ async function run() {
|
||||
assert.strictEqual(dayState.dayLanes[0].artistId, '__unassigned__')
|
||||
assert.strictEqual(dayState.dayLanes[0].blocks.length, 1)
|
||||
assert.strictEqual(dayState.unassignedCount, 1)
|
||||
assert.strictEqual(dayState.timelineHeight, 2934)
|
||||
assert.strictEqual(dayState.hours.find(item => item.label === '14:00').top, 1014)
|
||||
assert.strictEqual(dayState.dayLanes[0].blocks[0].height, 240)
|
||||
assert.strictEqual(dayState.timelineHeight, 1854)
|
||||
assert.strictEqual(dayState.timelineViewportHeight, 820)
|
||||
assert.strictEqual(dayState.hours.find(item => item.label === '14:00').top, 654)
|
||||
assert.strictEqual(dayState.dayLanes[0].blocks[0].height, 150)
|
||||
const shortAppointmentState = dayPage.buildDayView({
|
||||
businessStartTime: '10:30',
|
||||
businessEndTime: '11:30',
|
||||
@@ -133,9 +134,10 @@ async function run() {
|
||||
appointments: [{ orderItemId: 9, date: '2026-10-12', startTime: '2026-10-12 10:45:00', durationMinutes: 15, artistId: 1 }]
|
||||
})
|
||||
assert.strictEqual(shortAppointmentState.hours[0].top, 54)
|
||||
assert.strictEqual(shortAppointmentState.hours[1].top, 294)
|
||||
assert.strictEqual(shortAppointmentState.hours[1].top, 204)
|
||||
assert.strictEqual(shortAppointmentState.timelineViewportHeight, 204)
|
||||
const shortAppointmentLane = shortAppointmentState.dayLanes.find(lane => lane.artistId === 1)
|
||||
assert.strictEqual(shortAppointmentLane.blocks[0].height, 60)
|
||||
assert.strictEqual(shortAppointmentLane.blocks[0].height, 40)
|
||||
assert.strictEqual(shortAppointmentLane.blocks[0].compact, true)
|
||||
const missingHoursPage = createPage({ viewMode: 'day', currentDateText: '2026-10-12' })
|
||||
const missingHoursEmptyState = missingHoursPage.buildDayView({
|
||||
|
||||
Reference in New Issue
Block a user