fix(client): preserve order category counts while refreshing
This commit is contained in:
@@ -49,3 +49,13 @@ test('old same-page response cannot clamp a newer query or clear its current sel
|
||||
assert.deepEqual(h.selectedOrders.value, ['new-selection'])
|
||||
assert.equal(h.orderTableVersion.value, 1)
|
||||
})
|
||||
|
||||
|
||||
test('clicking the current category does not reload or reset its page, but an error can be retried', async () => {
|
||||
const h = harness(); h.tablePage.value = 3
|
||||
await h.selectOrderQueue('all')
|
||||
assert.equal(h.calls.length, 0); assert.equal(h.tablePage.value, 3)
|
||||
h.store.loadError = 'failed'
|
||||
await h.selectOrderQueue('all')
|
||||
assert.equal(h.calls.length, 1); assert.equal(h.tablePage.value, 1)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user