How to use the @flood/element.ENV.FLOOD_LOAD_TEST function in @flood/element

To help you get started, we’ve selected a few @flood/element examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flood-io / element / smoke / test-scripts / googling-test-data.pass.ts View on Github external
import { step, By, Key, Until, TestSettings, TestData, ENV, Browser } from '@flood/element'
import * as assert from 'assert'

export const settings: TestSettings = {
	loopCount: ENV.FLOOD_LOAD_TEST ? -1 : 1,
	clearCache: false,
	clearCookies: false,
	screenshotOnFailure: true,
	actionDelay: 3,
	stepDelay: 3,
}

interface Row {
	query: string
	href: string
	count: number
}

TestData.fromCSV('googling-test-data.pass/googling-test-data.csv').shuffle()

export default async () => {