Skip to content

Commit

Permalink
remove exact option leak
Browse files Browse the repository at this point in the history
  • Loading branch information
mum-never-proud committed Apr 1, 2020
1 parent 32288ad commit 7776cbe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ declare module 'ember-cli-page-object' {
Definition,
FindOptions,
TriggerOptions,
ClickOnTextOptions,
GetterDescriptor,
MethodDescriptor,
DSL
Expand All @@ -31,7 +32,7 @@ declare module 'ember-cli-page-object' {

// Actions
function clickable(scope?: string, userOptions?: FindOptions): MethodDescriptor<<T>(this: T) => T>;
function clickOnText(scope?: string, userOptions?: FindOptions): MethodDescriptor<<T>(this: T, text: string) => T>;
function clickOnText(scope?: string, userOptions?: ClickOnTextOptions): MethodDescriptor<<T>(this: T, text: string) => T>;
function fillable(scope?: string, userOptions?: FindOptions): MethodDescriptor<<T>(this: T, clueOrContent: string, content?: string) => T>;
function selectable(scope?: string, userOptions?: FindOptions): MethodDescriptor<<T>(this: T, clueOrContent: string, content?: string) => T>;
function triggerable(event: string, scope?: string, eventOptions?: TriggerOptions, options?: FindOptions): MethodDescriptor<<T>(this: T, options?: {}) => T>;
Expand Down Expand Up @@ -147,7 +148,6 @@ declare module 'ember-cli-page-object/-private' {
scope?: string;
last?: boolean;
visible?: boolean;
exact?: boolean;
at?: number;
}

Expand All @@ -163,4 +163,8 @@ declare module 'ember-cli-page-object/-private' {
resetScope?: boolean;
testContainer?: string|HTMLElement|JQuery;
}

interface ClickOnTextOptions extends FindOptions {
exact?: boolean
}
}

0 comments on commit 7776cbe

Please sign in to comment.