test: updated js methods to refer ts locators for Git Tests (#34577)

This commit is contained in:
NandanAnantharamu 2024-06-28 16:34:07 +05:30 committed by GitHub
parent a9baac651c
commit 65e28b4c1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 4 deletions

View File

@ -35,7 +35,7 @@ describe(
cy.get(gitSyncLocators.mergeButton).should("be.disabled");
cy.wait(3000);
cy.get(gitSyncLocators.mergeBranchDropdownDestination).click();
cy.get(_.gitSync._mergeBranchDropdownDestination).click();
cy.get(commonLocators.dropdownmenu).contains(mainBranch).click();
_.agHelper.AssertElementAbsence(_.gitSync._checkMergeability, 30000);

View File

@ -20,7 +20,6 @@ export default {
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",
connetStatusbar: ".t--connect-statusbar",

View File

@ -111,7 +111,7 @@ Cypress.Commands.add("merge", (destinationBranch) => {
); */
agHelper.AssertElementEnabledDisabled(
gitSyncLocators.mergeBranchDropdownDestination,
gitSync._mergeBranchDropdownDestination,
0,
false,
);
@ -121,7 +121,7 @@ Cypress.Commands.add("merge", (destinationBranch) => {
interceptions[0]?.response?.statusCode === 200 &&
interceptions[1]?.response?.statusCode === 200
) {
cy.get(gitSyncLocators.mergeBranchDropdownDestination).click();
cy.get(gitSync._mergeBranchDropdownDestination).click();
cy.get(commonLocators.dropdownmenu).contains(destinationBranch).click();
agHelper.AssertElementAbsence(gitSync._checkMergeability, 35000);
assertHelper.WaitForNetworkCall("mergeStatus");