Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { step, TestSettings, Until, By, MouseButtons, Device, Browser } from '@flood/element'
import * as assert from 'assert'
export const settings: TestSettings = {
loopCount: 1,
device: Device.iPadLandscape,
userAgent: 'I AM ROBOT',
disableCache: true,
actionDelay: 1,
stepDelay: 2,
responseTimeMeasurement: 'step',
}
/**
* Flood Challenge
* Version: 1.0
*/
export default () => {
step('Flood Challenge: Start', async (browser: Browser) => {
await browser.visit('https://challenge.flood.io')
const page = browser.page
import { step, TestSettings, Device, Browser } from '@flood/element'
import { dirname } from 'path'
import assert from 'assert'
export const settings: TestSettings = {
loopCount: 1,
device: Device.iPadLandscape,
userAgent: 'I AM ROBOT',
disableCache: true,
actionDelay: 1,
stepDelay: 2,
responseTimeMeasurement: 'step',
}
/**
* Flood Challenge
* Version: 1.0
*/
export default () => {
step('external module', async (browser: Browser) => {
assert.ok(dirname('/foo/bar') == '/foo')
assert.ok(process.cwd().length > 0)
})
import { step, TestSettings, Until, By, Device, Driver } from '@flood/element'
import assert from 'assert'
export const settings: TestSettings = {
loopCount: 1,
device: Device.iPadLandscape,
userAgent: 'I AM ROBOT',
disableCache: true,
actionDelay: 1,
stepDelay: 2,
responseTimeMeasurement: 'step',
incognito: true,
}
/**
* Flood Challenge
* Version: 1.0
*/
export default () => {
step('Flood Challenge: Start', async (browser: Driver) => {
await browser.visit('https://challenge.flood.io')