Skip to content

Commit e56dc64

Browse files
committed
Use const for time const
1 parent d2c1376 commit e56dc64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/e2e/yamcs/telemetryTables.e2e.spec.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Telemetry Table Specific Tests
2727
import { pluginFixtures, appActions } from 'openmct-e2e';
2828
const { test, expect } = pluginFixtures;
2929
const { setRealTimeMode } = appActions;
30+
const FIVE_SECONDS = 5*1000;
3031

3132
test.describe("Telemetry Tables tests @yamcs", () => {
3233

@@ -85,7 +86,7 @@ test.describe("Telemetry Tables tests @yamcs", () => {
8586
await page.goto('./#/browse/taxonomy:spacecraft/taxonomy:~myproject/taxonomy:~myproject~CCSDS_Packet_Length?tc.mode=local&tc.startDelta=5000&tc.endDelta=5000&tc.timeSystem=utc&view=table', {waitUntil: 'domcontentloaded'});
8687

8788
// wait 5 seconds for the table to fill
88-
await page.waitForTimeout(5*1000);
89+
await page.waitForTimeout(FIVE_SECONDS);
8990
// pause the table
9091
await page.getByLabel('Pause').click();
9192
const telemTableDesc = await page.getByLabel("CCSDS_Packet_Length table content");
@@ -100,7 +101,7 @@ test.describe("Telemetry Tables tests @yamcs", () => {
100101
await page.locator('thead div').filter({ hasText: 'Timestamp' }).click();
101102

102103
// wait for x seconds
103-
await page.waitForTimeout(5*1000);
104+
await page.waitForTimeout(FIVE_SECONDS);
104105

105106
// pause the table
106107
await page.getByLabel('Pause').click();

0 commit comments

Comments
 (0)