@davoodmehraban89 / LifeMate / commits / c147676
Fork 0

LifeMate — Personal, Family & Learning Companion

test(feedback): use importer canonical source URL for deterministic seed

davoodmehraban89 committed Oct 15, 2026 at 09:40 UTC c1476763b0e8886f2d3d9acdc84c69e5eb673b01
1 file changed +1 -1
backend/tests/learning_feedback.test.js
+1 -1
@@ -160,7 +160,7 @@ describe('learning feedback authenticated real HTTP and synthetic PostgreSQL', {
160 // Use the deterministic checked public-catalogue row imported by CI.
161 const units = await pool.query(`select u.id from learning_unit u
162 join textbook_catalog t on t.id=u.textbook_id
163 - where t.book_code='101' and t.source_url='http://www.chap.sch.ir/books/14142'
163 + where t.book_code='101' and t.source_url='https://chap.sch.ir/'
164 order by u.order_index,u.id limit 1`);
165 assert.equal(units.rowCount, 1, 'Seeded primary catalogue unit must exist');
166 const body = submission({ unitId: units.rows[0].id, category: 'unclear', summary: '<b>SYNTHETIC-CHOSEN-FEEDBACK</b>' });