PromucFlow_constructor/app/client/cypress/locators/ApiEditor.js
ChandanBalajiBP a99176fae9
fix: Outdated design for Rest API Editor (#13812)
* Outdated design for Queries/JS/API Editor

* updated cypress test cases and colors reference

* updated cypress test cases with add and delete datasource

* added indexing for testcases

Co-authored-by: Chandan Balaji <chandanbalaji@Chandans-MacBook-Pro.local>
2022-07-08 20:01:12 +05:30

38 lines
1.5 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]",
httpDropDownOptions: ".t--dropdown-option",
codeEditorWrapper: ".t--code-editor-wrapper",
apiSearchHint: ".datasource-hint",
slashCommandButton: ".commands-button",
};