PromucFlow_constructor/app/client/cypress/locators/apiWidgetslocator.json
Nandan H A 6a1e942680 Feature/api action tests
added below tests
* API verb tests added ( POST /PUT/PATCH)
* Query param tests (This is also includes invalid and valid)
* Edit APIs( update of api name and api datasource as well)
* mustache API test
* Market Place API test
* Curl POST test
2020-05-20 16:04:37 +00:00

27 lines
1.4 KiB
JSON

{
"resourceUrl": ".t--dataSourceField",
"searchApi": ".t--sidebar input[type=text]",
"createapi": ".t--createBlankApiCard",
"apiTxt": "input[name=name]",
"popover": ".bp3-popover-target >div>svg",
"moveTo": ".single-select >div:contains('Move to')",
"copyTo": ".single-select >div:contains('Copy to')",
"home": ".single-select >div:contains('Home')",
"delete": ".single-select >div:contains('Delete')",
"path": ".t--path >div textarea",
"editResourceUrl": ".t--dataSourceField input",
"autoSuggest": "//div[contains(@id,'react-select')]",
"headerKey": "(//div[contains(@class,'t--actionConfiguration.headers[0].key.0')]//textarea)[2]",
"headerValue": "(//div[contains(@class,'t--actionConfiguration.headers[0].value.0')]//textarea)[2]",
"queryKey": "(//div[contains(@class,'t--actionConfiguration.queryParameters[0].key.0')]//textarea)[2]",
"queryValue": "(//div[contains(@class,'t--actionConfiguration.queryParameters[0].value.0')]//textarea)[2]",
"responseStatus": "//div[@id='root']",
"responseText": ".CodeMirror-line > [role='presentation']",
"createApiOnSideBar": "button:contains('Create new API')",
"saveButton": "button:contains('Save')",
"addHeader": ".t--addApiHeader svg",
"marketPlaceapi": ".t--eachProviderCard p",
"addPageButton": ".t--addToPageBtn",
"apidocumentaionLink": ".linkStyles",
"postbody": "(//div[contains(@class,'CodeMirror-wrap')]//textarea)[1]"
}