fix(prestashop): support customer note sorting in 1.1.9

This commit is contained in:
fatequod
2026-09-11 09:57:20 +02:00
parent 8230135a2e
commit 519f8daeb0
5 changed files with 11 additions and 6 deletions
+5
View File
@@ -162,6 +162,11 @@ test('collects public customer notes from order, cart and customer thread withou
'Kod bramy: 1234',
]);
assert.equal(calls.filter(call => call.pathname.endsWith('/customer_messages')).length, 1);
assert.equal(calls.filter(call => call.pathname.endsWith('/messages')).length, 2);
for (const call of calls.filter(call => call.pathname.endsWith('/messages')
|| call.pathname.endsWith('/customer_messages'))) {
assert.equal(call.searchParams.get('sort'), 'id_ASC');
}
});
test('keeps notes from available sources when one customer-note endpoint is forbidden', async t => {