Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding docs to the functional test suite. #698

Merged
merged 1 commit into from
Dec 18, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 13 additions & 2 deletions test/support/spectron-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ const TIMEOUTS = [
3000,
5000,
8000,
13000,
21000
13000
];

/**
Expand Down Expand Up @@ -98,10 +97,22 @@ function progressiveWait(fn, selector, reverse, index) {
*/
function addExtendedWaitCommands(client) {

/**
* Wait for an element to exist in the Compass test suite.
*
* @param {String} selector - The CSS selector for the element.
* @param {Boolean} reverse - Whether to reverse the wait.
*/
client.addCommand('waitForExistInCompass', function(selector, reverse) {
return progressiveWait(this.waitForExist.bind(this), selector, reverse, 0);
});

/**
* Wait for an element to be visible in the Compass test suite.
*
* @param {String} selector - The CSS selector for the element.
* @param {Boolean} reverse - Whether to reverse the wait.
*/
client.addCommand('waitForVisibleInCompass', function(selector, reverse) {
return progressiveWait(this.waitForVisible.bind(this), selector, reverse, 0);
});
Expand Down