From 7bdccdd032797d291487f9b39858e1be5e370fde Mon Sep 17 00:00:00 2001 From: Shefali Date: Tue, 8 Oct 2024 15:19:31 -0700 Subject: [PATCH] adds jsdocs --- tests/e2e/yamcs/telemetryTables.e2e.spec.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/e2e/yamcs/telemetryTables.e2e.spec.mjs b/tests/e2e/yamcs/telemetryTables.e2e.spec.mjs index 33901760..e298108d 100644 --- a/tests/e2e/yamcs/telemetryTables.e2e.spec.mjs +++ b/tests/e2e/yamcs/telemetryTables.e2e.spec.mjs @@ -110,6 +110,12 @@ test.describe("Telemetry Tables tests @yamcs", () => { expect(await assertTableRowsInOrder(telemTableAsc, 'asc')).toBe(true); }); + /** + * Returns whether a list of timestamp based rows are in asc or desc order + * @param { Node } telemTable Node for telemetry table + * @param { string } order 'asc' or 'desc' + * @returns {Boolean} All table rows are in order + */ async function assertTableRowsInOrder(telemTable, order) { let rowsAreInOrder = false; const allRows = await (await telemTable.getByLabel('Table Row')).all();