fix(demo): hide axis lines by default
All checks were successful
Package component / package (push) Successful in 4m12s
All checks were successful
Package component / package (push) Successful in 4m12s
This commit is contained in:
@@ -140,8 +140,8 @@ describe('App workspace layout', { timeout: 20_000 }, () => {
|
||||
const chart = wrapper.getComponent(WaveformChart)
|
||||
|
||||
expect(chart.props('axes')).toEqual({
|
||||
x: { lineVisible: true },
|
||||
y: { lineVisible: true },
|
||||
x: { lineVisible: false },
|
||||
y: { lineVisible: false },
|
||||
})
|
||||
|
||||
await wrapper.get('[aria-label="显示横轴线"]').trigger('click')
|
||||
@@ -149,8 +149,8 @@ describe('App workspace layout', { timeout: 20_000 }, () => {
|
||||
await flushPromises()
|
||||
|
||||
expect(chart.props('axes')).toEqual({
|
||||
x: { lineVisible: false },
|
||||
y: { lineVisible: false },
|
||||
x: { lineVisible: true },
|
||||
y: { lineVisible: true },
|
||||
})
|
||||
wrapper.unmount()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user