-
Notifications
You must be signed in to change notification settings - Fork 0
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 #10 from danielarbc/docs/create-commands-intellisense
docs: create commands intellisense
- Loading branch information
Showing
5 changed files
with
56 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/// <reference types="cypress" /> | ||
|
||
declare namespace Cypress { | ||
interface Chainable<Subject> { | ||
/** | ||
* Login in application | ||
* If you don't put any parameters we will use the username and password in cypress.env.json | ||
* @param username string | ||
* @param password string | ||
* @example | ||
* cy.login() | ||
* cy.login(username,password) | ||
*/ | ||
login(username: string, password: string): Chainable<any> | ||
/** | ||
* Add a list of products to cart | ||
* @param productList array | ||
* @example | ||
* cy.addProductToCart([product1, product2]) | ||
*/ | ||
addProductToCart(productList: array): Chainable<any> | ||
/** | ||
* Add a list of products to cart | ||
* @param firstName string | ||
* @param secondName string | ||
* @param postalCode string | ||
* @example | ||
* cy.fillPersonalDataAtCheckout(firstName, secondName, postalCode) | ||
*/ | ||
fillPersonalDataAtCheckout( | ||
firstName: string, | ||
secondName: string, | ||
postalCode: string, | ||
): Chainable<any> | ||
/** | ||
* Validate the information of list of products added to cart like name, description and price | ||
* @param productList array | ||
* @example | ||
* cy.validateCheckoutInfos([product1, product2]) | ||
*/ | ||
validateCheckoutInfos(productList: array): Chainable<any> | ||
/** | ||
* After add the products to card and fill the personal information, finish order | ||
* @example | ||
* cy.finishOrder() | ||
*/ | ||
finishOrder(): Chainable<any> | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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