Skip to content

Commit

Permalink
TERR-425
Browse files Browse the repository at this point in the history
- added jsdoc for edgeColoration.spec getThresholds helper fn
  • Loading branch information
sanchezelton committed Oct 14, 2024
1 parent ccffeb1 commit 3d2a422
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2e/edgeColoration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ import { topologySheetUrl as topologyUrl, flowSheets } from './e2e.config.json';
import { setupFixtures } from './util/fixtures';


/**
* Returns a Promise that resolves to an array of IThreshold objects for the provided IFlowSheet inFs.
*
* @param {IFlowSheet} inFs The input flow traffic data for the given layer.
* @param {Page} page The Playwright Page provider object.
* @returns {Promise<IThreshold[]>} The thresholds for the given traffic.
* @see {@link https://playwright.dev/docs/api/class-page} for Playwright API Page documentation.
*/
const getThresholds = async (inFs: IFlowSheet, page: Page): Promise<IThreshold[]> => {
// only need the first swatch for the high value
let baseThresholdLoc: Locator = page.locator('#Thresholds [class*="inputWrapper"]').getByRole('button').first();
Expand Down

0 comments on commit 3d2a422

Please sign in to comment.