2021-09-27 10:04:21 +00:00
|
|
|
declare namespace Cypress {
|
|
|
|
interface Chainable<Subject> {
|
|
|
|
clearSessionData(): Chainable<any>;
|
|
|
|
handleDeleteElement(
|
|
|
|
element: {},
|
|
|
|
deleteFunction: function,
|
|
|
|
startsWith: string,
|
|
|
|
name: string
|
|
|
|
): Chainable<any>;
|
|
|
|
deleteElementsStartsWith(
|
|
|
|
deleteFunction: function,
|
|
|
|
getFunction: function,
|
|
|
|
startsWith: string,
|
|
|
|
name? = string
|
|
|
|
): Chainable<any>;
|
|
|
|
softExpectSkeletonIsVisible(): Chainable<any>;
|
|
|
|
expectCorrectFullAddress(
|
|
|
|
responseAddress: string,
|
|
|
|
expectedAddress: string
|
|
|
|
): Chainable<any>;
|
|
|
|
expectCorrectBasicAddress(
|
|
|
|
responseAddress: string,
|
|
|
|
expectedAddress: string
|
|
|
|
): Chainable<any>;
|
|
|
|
softAssertVisibility(selector: string): Chainable<any>;
|
|
|
|
softAssertMatch(selector: string, regexp: string): Chainable<any>;
|
|
|
|
getTextFromElement(element: {}): Chainable<any>;
|
|
|
|
clearAndType(subject: {}, text: string): Chainable<any>;
|
|
|
|
loginUser(): Chainable<any>;
|
|
|
|
loginInShop(): Chainable<any>;
|
|
|
|
loginUserViaRequest(authorization?: string, user?: {}): Chainable<any>;
|
|
|
|
assignElements(name: string, withLoader?: boolean): Chainable<any>;
|
|
|
|
fillUpAddressFormAndSubmit(address: {}): Chainable<any>;
|
|
|
|
fillUpAddressForm(address: {}): Chainable<any>;
|
|
|
|
fillUpBasicAddress(address: {}): Chainable<any>;
|
|
|
|
confirmationMessageShouldDisappear(): Chainable<any>;
|
|
|
|
waitForProgressBarToNotExist(): Chainable<any>;
|
|
|
|
waitForProgressBarToNotBeVisible(): Chainable<any>;
|
|
|
|
visitAndWaitForProgressBarToDisappear(url: string): Chainable<any>;
|
|
|
|
fillBaseSelect(selectSelector: string, value: string): Chainable<any>;
|
|
|
|
fillAutocompleteSelect(
|
|
|
|
selectSelector: string,
|
|
|
|
option?: string
|
|
|
|
): Chainable<any>;
|
|
|
|
addAliasToGraphRequest(alias: string): Chainable<any>;
|
|
|
|
sendRequestWithQuery(query: string): Chainable<any>;
|
|
|
|
fillMultiSelect(selectSelector: string, option: string): Chainable<any>;
|
|
|
|
createNewOption(selectSelector: string, newOption: string): Chainable<any>;
|
|
|
|
findElementOnTable(elementName: string): Chainable<any>;
|
|
|
|
searchInTable(query: string): Chainable<any>;
|
2021-11-26 10:42:59 +00:00
|
|
|
waitForRequestAndCheckIfNoErrors(alias: string): Chainable<any>;
|
2021-09-27 10:04:21 +00:00
|
|
|
}
|
|
|
|
}
|