Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
NandanAnantharamu committed Jul 1, 2024
1 parent 778e485 commit 99757bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ describe("Git import flow ", { tags: ["@tag.Git"] }, function () {
cy.wait(2000);
gitSync.MergeToMaster();
//cy.merge(mainBranch);
cy.get(gitSyncLocators.closeGitSyncModal).click();
// cy.get(gitSyncLocators.closeGitSyncModal).click();
cy.wait(2000);
cy.latestDeployPreview();
table.AssertTableLoaded();
Expand Down
10 changes: 9 additions & 1 deletion app/client/cypress/support/gitSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,15 @@ Cypress.Commands.add("switchGitBranch", (branch, expectError) => {
Cypress.Commands.add("commitAndPush", (assertFailure) => {
cy.get(homePage.publishButton).click();
agHelper.AssertElementExist(gitSync._bottomBarPull);
cy.get(gitSyncLocators.commitCommentInput).type("Initial Commit");
agHelper.AssertElementVisibility(gitSyncLocators.gitSyncModal);
cy.get(gitSyncLocators.commitCommentInput).should(
"have.attr",
"placeholder",
"Your commit message here",
);
cy.get(gitSyncLocators.commitCommentInput).type("Initial Commit", {
force: true,
});
cy.get(gitSyncLocators.commitButton).click();
if (!assertFailure) {
// check for commit success
Expand Down

0 comments on commit 99757bd

Please sign in to comment.