PromucFlow_constructor/app/client/cypress/locators/ApiEditor.js
Ayangade Adeoluwa 6a096464fa
fix: Auto-generated header Refactor (#19873)
API content type refactor flow. More information can be found
[here](https://www.notion.so/appsmith/API-Content-type-Header-Refactor-07f2f944e13f43148210c2461cf3fcda?d=339958cf1d374fefadfa437f86d95627)

Fixes #18473

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)


### Test Plan
> Add Testsmith test cases links that relate to this PR

### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)


## Checklist:
### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test

---------

Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
Co-authored-by: PiyushPushkar02 <118709669+PiyushPushkar02@users.noreply.github.com>
Co-authored-by: Sumit Kumar <sumit@appsmith.com>
Co-authored-by: Aishwarya-U-R <91450662+Aishwarya-U-R@users.noreply.github.com>
2023-02-24 12:18:48 +00:00

39 lines
1.6 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",
jsonBodyTab: "[data-cy=tab--JSON]",
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",
};