PromucFlow_constructor/app/client/cypress/locators/ApiEditor.js
Aman Agarwal 7aeaf75c90
fix: removed default value for API DS, updated conditions for headers and apiformattype (#14107)
* fix: removed default value for API DS, updated conditions for headers and apiformattype

* fix: added test cases for content type changes on changing method types

* fix: imported isEmpty directly with loading full lodash module
2022-06-01 10:29:58 +00:00

34 lines
1.3 KiB
JavaScript

export default {
curlImage: ".t--curlImage",
curlImportBtn: ".t--importBtn",
createBlankApiCard: ".t--createBlankApiCard",
eachProviderCard: ".t--eachProviderCard",
nameOfApi: ".t--nameOfApi",
ApiNameField: ".t--action-name-edit-field",
addToPageBtn: ".t--addToPageBtn",
ApiActionMenu: ".t--more-action-menu",
ApiDeleteBtn: ".t--apiFormDeleteBtn",
ApiRunBtn: ".t--apiFormRunBtn",
addToPageBtnsId: ".t--addToPageButtons",
ApiHomePage: ".t--apiHomePage",
formActionButtons: ".t--formActionButtons",
dataSourceField: ".t--dataSourceField",
responseBody: ".CodeMirror-code span.cm-string.cm-property",
ApiVerb: ".t--apiFormHttpMethod",
apiPaginationNextText: ".t--apiFormPaginationNext",
apiPaginationPrevText: ".t--apiFormPaginationPrev",
apiPaginationPrevTest: ".t--apiFormPaginationPrevTest",
apiPaginationNextTest: ".t--apiFormPaginationNextTest",
apiPaginationTab: ".t--apiFormPaginationType",
apiTab: ".react-tabs__tab-list li",
bodyType: ".t--apiFormPostBodyType",
bodyTypeSelected: '[data-cy="t--api-body-tab-switch"] .t--tab-selected',
bodyTab: "Body",
headersTab: "Header",
jsonResponseTab: "[data-cy=t--tab-JSON]",
tableResponseTab: "[data-cy=t--tab-TABLE]",
rawResponseTab: "[data-cy=t--tab-RAW]",
datasourcesRightPane: "[data-cy=t--tab-datasources]",
connectionsRightPane: "[data-cy=t--tab-Connections]",
};