PromucFlow_constructor/app/client/cypress/locators/gitSyncLocators.js
Aishwarya-U-R 70f6cd1ab8
test: Automated tests for Bug18376 + few flaky fixes (#18769)
* ApiOnload spec fix

* Bug 18376 script added

* Bug 18376 script fix

* ValidateURL() added

* OnLoadTests/APIOnLoad_Spec.ts fix

* Moved Bug 16248 script

* JSOnload trial fix

* JsonLoad fix -disbaling not working hnce commented

* Skipping GitImport (merge issue-open bug 18776)

* Git imPort trial fix

* PassingParams spec update

* APIPage.ts wrong update corrected

* Removed added comments

* ApiPage.ts mistake corrected!
2022-12-09 10:36:52 +05:30

64 lines
3.1 KiB
JavaScript

export default {
gitRepoInput: ".t--git-repo-input",
generateDeployKeyBtn: "[data-testid=t--generate-deploy-ssh-key-button]",
connectSubmitBtn: ".t--connect-submit-btn",
createNewBranchButton: ".t--create-new-branch-button",
createNewBranchSubmitbutton: ".t--create-new-branch-submit-button",
branchButton: "[data-testid=t--branch-button-container]",
commitCommentInput: ".t--commit-comment-input",
commitButton: ".t--commit-button",
pullButton: ".t--pull-button",
openRepoButton: ".t--open-repo-button",
gitConfigNameInput: ".t--git-config-name-input",
gitConfigEmailInput: ".t--git-config-email-input",
branchSearchInput: ".t--branch-search-input",
branchListItem: "[data-testid=t--branch-list-item]",
closeGitSyncModal: ".t--close-git-sync-modal",
closeRevokeModal: ".t--close-disconnect-modal",
gitSyncModal: ".git-sync-modal",
bottomBarCommitButton: ".t--bottom-bar-commit",
bottomBarMergeButton: ".t--bottom-bar-merge",
bottomBarPullButton: ".t--bottom-bar-pull",
mergeBranchDropdownDestination: ".t--merge-branch-dropdown-destination",
mergeCTA: "[data-testid=t--git-merge-button]",
loaderQuickGitAction: ".t--loader-quick-git-action",
copySshKey: ".t--copy-ssh-key",
connetStatusbar: ".t--connect-statusbar",
useGlobalGitConfig: "[data-cy=t--use-global-config-checkbox]",
connectGitBottomBar: ".t--connect-git-bottom-bar",
disabledConnectGitBottomBar: ".t--disabled-connect-git-bottom-bar",
syncBranches: ".t--sync-branches",
closeBranchList: ".t--close-branch-list",
learnMoreDeployKey: "//a[text()='Learn More']",
learnMoreSshUrl: ".t--learn-more-ssh-url",
readDocument: ".t--read-document",
gitConnectErrorLearnMore:
".t--git-connection-error .t--notification-banner-learn-more",
deployPreview: ".t--git-deploy-preview",
mergeButton: "[data-testid=t--git-merge-button]",
disconnectIcon: ".t--git-disconnect-icon",
disconnectGitModal: ".disconnect-git-modal",
disconnectButton: ".t--git-revoke-button",
closeDisconnectModal: ".t--close-disconnect-modal",
disconnectAppNameInput: ".t--git-app-name-input",
repoLimitExceededErrorModal: ".t--git-repo-limited-modal",
contactSalesButton: ".t--contact-sales-button",
connectedApplication: ".t--connected-app-wrapper",
diconnectLink: ".t--disconnect-link",
disconnectLearnMoreLink: ".t--disconnect-learn-more",
learnMoreOnRepoLimitModal: ".t--learn-more-repo-limit-modal",
gitSyncModalDeployTab: "[data-cy=t--tab-DEPLOY]",
gitPullCount: ".t--bottom-bar-pull .count",
gitConnectionContainer: "[data-test=t--git-connection-container]",
gitRemoteURLContainer: "[data-test=t--remote-url-container]",
discardChanges: ".t--discard-button",
gitBranchContextMenu: ".git-branch-more-menu",
gitBranchDelete: ".t--branch-more-menu-delete",
SSHKeycontextmenu: ".bp3-popover-wrapper.more",
regenerateSSHKeyECDSA: "[data-cy='t--regenerate-sshkey-ECDSA']",
regenerateSSHKeyRSA: "[data-cy='t--regenerate-sshkey-RSA']",
confirmButton: "//span[text()='Yes']",
mergeConflicts:
"//span[contains(text(), 'There are uncommitted changes present in your local branch master. Please commit them first and try again')]",
};