-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(interaction): make scroll interaction configurable
now it is possible to set where to place the element to be scrolled within the visible area
- Loading branch information
Showing
4 changed files
with
129 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Answerable, Interaction } from '@serenity-js/core'; | ||
|
||
import { PageElement } from '../models'; | ||
|
||
/** | ||
* @desc | ||
* Fluent interface to make the instantiation of | ||
* the {@link @serenity-js/core/lib/screenplay~Interaction} | ||
* to {@link Scroll} more configurable. | ||
* | ||
* @see {@link Scroll} | ||
* | ||
* @interface | ||
*/ | ||
export interface ScrollBuilder { | ||
|
||
/** | ||
* @desc | ||
* Instantiates an {@link @serenity-js/core/lib/screenplay~Interaction} | ||
* to {@link Scroll}. | ||
* | ||
* @param {Answerable<PageElement>} target | ||
* @returns {@serenity-js/core/lib/screenplay~Interaction} | ||
* | ||
* @see {@link Target} | ||
*/ | ||
to(target: Answerable<PageElement>) : Interaction; | ||
} |