Skip to content

Commit

Permalink
Use const for time const
Browse files Browse the repository at this point in the history
  • Loading branch information
shefalijoshi committed Oct 8, 2024
1 parent d2c1376 commit e56dc64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/e2e/yamcs/telemetryTables.e2e.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Telemetry Table Specific Tests
import { pluginFixtures, appActions } from 'openmct-e2e';
const { test, expect } = pluginFixtures;
const { setRealTimeMode } = appActions;
const FIVE_SECONDS = 5*1000;

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

Expand Down Expand Up @@ -85,7 +86,7 @@ test.describe("Telemetry Tables tests @yamcs", () => {
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'});

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

// wait for x seconds
await page.waitForTimeout(5*1000);
await page.waitForTimeout(FIVE_SECONDS);

// pause the table
await page.getByLabel('Pause').click();
Expand Down

0 comments on commit e56dc64

Please sign in to comment.