-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from NoriSte/feature/log-options
Add some log options
- Loading branch information
Showing
7 changed files
with
271 additions
and
51 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,17 +1,91 @@ | ||
/// <reference types="Cypress" /> | ||
cy.waitUntil(function () { return true; }); | ||
cy.waitUntil(function () { return false; }); | ||
cy.waitUntil(function () { return Promise.resolve(true); }); | ||
cy.waitUntil(function () { return Promise.resolve(false); }); | ||
cy.waitUntil(function () { return true; }, {}); | ||
cy.waitUntil(function () { return false; }, {}); | ||
cy.waitUntil(function () { return Promise.resolve(true); }, {}); | ||
cy.waitUntil(function () { return Promise.resolve(false); }, {}); | ||
cy.waitUntil(function () { return true; }, { timeout: 500 }); | ||
cy.waitUntil(function () { return false; }, { timeout: 500 }); | ||
cy.waitUntil(function () { return Promise.resolve(true); }, { timeout: 500 }); | ||
cy.waitUntil(function () { return Promise.resolve(false); }, { timeout: 500 }); | ||
cy.waitUntil(function () { return true; }, { errorMsg: "Custom error message" }); | ||
cy.waitUntil(function () { return false; }, { errorMsg: "Custom error message" }); | ||
cy.waitUntil(function () { return Promise.resolve(true); }, { errorMsg: "Custom error message" }); | ||
cy.waitUntil(function () { return Promise.resolve(false); }, { errorMsg: "Custom error message" }); | ||
cy.waitUntil(function() { | ||
return true; | ||
}); | ||
cy.waitUntil(function() { | ||
return false; | ||
}); | ||
cy.waitUntil(function() { | ||
return Promise.resolve(true); | ||
}); | ||
cy.waitUntil(function() { | ||
return Promise.resolve(false); | ||
}); | ||
cy.waitUntil(function() { | ||
return true; | ||
}, {}); | ||
cy.waitUntil(function() { | ||
return false; | ||
}, {}); | ||
cy.waitUntil(function() { | ||
return Promise.resolve(true); | ||
}, {}); | ||
cy.waitUntil(function() { | ||
return Promise.resolve(false); | ||
}, {}); | ||
cy.waitUntil( | ||
function() { | ||
return true; | ||
}, | ||
{ timeout: 500 } | ||
); | ||
cy.waitUntil( | ||
function() { | ||
return false; | ||
}, | ||
{ timeout: 500 } | ||
); | ||
cy.waitUntil( | ||
function() { | ||
return Promise.resolve(true); | ||
}, | ||
{ timeout: 500 } | ||
); | ||
cy.waitUntil( | ||
function() { | ||
return Promise.resolve(false); | ||
}, | ||
{ timeout: 500 } | ||
); | ||
cy.waitUntil( | ||
function() { | ||
return true; | ||
}, | ||
{ errorMsg: "Custom error message" } | ||
); | ||
cy.waitUntil( | ||
function() { | ||
return false; | ||
}, | ||
{ errorMsg: "Custom error message" } | ||
); | ||
cy.waitUntil( | ||
function() { | ||
return Promise.resolve(true); | ||
}, | ||
{ errorMsg: "Custom error message" } | ||
); | ||
cy.waitUntil( | ||
function() { | ||
return Promise.resolve(false); | ||
}, | ||
{ errorMsg: "Custom error message" } | ||
); | ||
cy.waitUntil(() => true, { description: "Custom description" }); | ||
cy.waitUntil(() => true, { | ||
logger: ({ name, message, consoleProps }) => { | ||
console.log({ name, message, consoleProps }); | ||
} | ||
}); | ||
cy.waitUntil(() => true, { | ||
log: false | ||
}); | ||
cy.waitUntil(() => true, { | ||
customMessage: "custom message" | ||
}); | ||
cy.waitUntil(() => true, { | ||
verbose: true | ||
}); | ||
cy.waitUntil(() => true, { | ||
customCheckMessage: "custom check message" | ||
}); |
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