@flood/chrome
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -100,4 +100,17 @@ // Type definitions for @flood/chrome 0.1.12 | ||
DOMSnapshotOnFailure?: boolean | ||
/** | ||
* Configures how we record response time for each step. | ||
* | ||
* Possible values: | ||
* - `"page"`: (Default) Record the document loading response time. This is usually what you consider response time on paged web apps. | ||
* - `"documentReady"`: Record page load time as the time when document ready event fires. Only useful on paged applications. | ||
* - `"networkMean"`: Takes the mean response time of all network requests which occur during a step. This is useful for Single Page Application which don't actually trigger a navigation. | ||
* - `"interaction"`: Records the wall clock time of a step. This is useful for Single Page Application which don't actually trigger a navigation. | ||
*/ | ||
responseTimeMeasurement?: ResponseTiming | ||
} | ||
type ResponseTiming = 'page' | 'documentReady' | 'networkMean' | 'interaction' | ||
/** | ||
@@ -165,3 +178,7 @@ * Specifies the available options which can be supplied to a step to override global settings. | ||
export declare function step(name: string, fn: StepFunction): void | ||
export declare function step(name: string, options: StepOptions, fn: StepFunction): void | ||
export declare function step( | ||
name: string, | ||
options: StepOptions, | ||
fn: StepFunction, | ||
): void | ||
@@ -263,3 +280,6 @@ /** | ||
*/ | ||
public doubleClick(locatable: Locatable, options?: ClickOptions): Promise<void> | ||
public doubleClick( | ||
locatable: Locatable, | ||
options?: ClickOptions, | ||
): Promise<void> | ||
@@ -269,3 +289,6 @@ /** | ||
*/ | ||
public selectByValue(locatable: Locatable, ...values: string[]): Promise<string[]> | ||
public selectByValue( | ||
locatable: Locatable, | ||
...values: string[] | ||
): Promise<string[]> | ||
@@ -298,3 +321,7 @@ /** | ||
*/ | ||
public type(locatable: Locatable, text: string, options?: { delay: number }): Promise<void> | ||
public type( | ||
locatable: Locatable, | ||
text: string, | ||
options?: { delay: number }, | ||
): Promise<void> | ||
@@ -301,0 +328,0 @@ /** |
{ | ||
"name": "@flood/chrome", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Flood Chrome provides an API for scripting Browser Level Load Tests", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
265480
6
870