test: updated js methods to refer ts locators for Git Tests (#34577)
This commit is contained in:
parent
a9baac651c
commit
65e28b4c1a
|
|
@ -35,7 +35,7 @@ describe(
|
||||||
|
|
||||||
cy.get(gitSyncLocators.mergeButton).should("be.disabled");
|
cy.get(gitSyncLocators.mergeButton).should("be.disabled");
|
||||||
cy.wait(3000);
|
cy.wait(3000);
|
||||||
cy.get(gitSyncLocators.mergeBranchDropdownDestination).click();
|
cy.get(_.gitSync._mergeBranchDropdownDestination).click();
|
||||||
cy.get(commonLocators.dropdownmenu).contains(mainBranch).click();
|
cy.get(commonLocators.dropdownmenu).contains(mainBranch).click();
|
||||||
_.agHelper.AssertElementAbsence(_.gitSync._checkMergeability, 30000);
|
_.agHelper.AssertElementAbsence(_.gitSync._checkMergeability, 30000);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ export default {
|
||||||
bottomBarCommitButton: ".t--bottom-bar-commit",
|
bottomBarCommitButton: ".t--bottom-bar-commit",
|
||||||
bottomBarMergeButton: ".t--bottom-bar-merge",
|
bottomBarMergeButton: ".t--bottom-bar-merge",
|
||||||
bottomBarPullButton: ".t--bottom-bar-pull",
|
bottomBarPullButton: ".t--bottom-bar-pull",
|
||||||
mergeBranchDropdownDestination: ".t--merge-branch-dropdown-destination",
|
|
||||||
mergeCTA: "[data-testid=t--git-merge-button]",
|
mergeCTA: "[data-testid=t--git-merge-button]",
|
||||||
loaderQuickGitAction: ".t--loader-quick-git-action",
|
loaderQuickGitAction: ".t--loader-quick-git-action",
|
||||||
connetStatusbar: ".t--connect-statusbar",
|
connetStatusbar: ".t--connect-statusbar",
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ Cypress.Commands.add("merge", (destinationBranch) => {
|
||||||
); */
|
); */
|
||||||
|
|
||||||
agHelper.AssertElementEnabledDisabled(
|
agHelper.AssertElementEnabledDisabled(
|
||||||
gitSyncLocators.mergeBranchDropdownDestination,
|
gitSync._mergeBranchDropdownDestination,
|
||||||
0,
|
0,
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
|
|
@ -121,7 +121,7 @@ Cypress.Commands.add("merge", (destinationBranch) => {
|
||||||
interceptions[0]?.response?.statusCode === 200 &&
|
interceptions[0]?.response?.statusCode === 200 &&
|
||||||
interceptions[1]?.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();
|
cy.get(commonLocators.dropdownmenu).contains(destinationBranch).click();
|
||||||
agHelper.AssertElementAbsence(gitSync._checkMergeability, 35000);
|
agHelper.AssertElementAbsence(gitSync._checkMergeability, 35000);
|
||||||
assertHelper.WaitForNetworkCall("mergeStatus");
|
assertHelper.WaitForNetworkCall("mergeStatus");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user