-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36142 from appsmithorg/release
06/09 Daily Promotion
- Loading branch information
Showing
94 changed files
with
1,865 additions
and
861 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
app/client/cypress/e2e/Regression/ClientSide/Git/GitAutocommit_spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import ReconnectLocators from "../../../../locators/ReconnectLocators"; | ||
import { featureFlagIntercept } from "../../../../support/Objects/FeatureFlags"; | ||
import { | ||
agHelper, | ||
gitSync, | ||
homePage, | ||
} from "../../../../support/Objects/ObjectsCore"; | ||
|
||
let wsName: string; | ||
let repoName: string = "TED-testrepo1"; | ||
|
||
describe( | ||
"Git Autocommit", | ||
{ tags: ["@tag.Git", "@tag.GitAutocommit"] }, | ||
function () { | ||
it("Check if autocommit progress bar is visible and network requests are properly called", function () { | ||
featureFlagIntercept({ | ||
release_git_autocommit_feature_enabled: true, | ||
}); | ||
agHelper.GenerateUUID(); | ||
cy.get("@guid").then((uid) => { | ||
wsName = "GitAC-" + uid; | ||
homePage.CreateNewWorkspace(wsName, true); | ||
|
||
cy.intercept({ | ||
method: "POST", | ||
url: "/api/v1/git/auto-commit/app/*", | ||
}).as("gitAutocommitTriggerApi"); | ||
|
||
cy.intercept( | ||
{ | ||
method: "GET", | ||
url: "/api/v1/git/auto-commit/progress/app/*", | ||
}, | ||
(req) => { | ||
req.on("response", (res) => { | ||
res.setDelay(500); | ||
}); | ||
}, | ||
).as("gitAutocommitProgressApi"); | ||
|
||
gitSync.ImportAppFromGit(wsName, repoName); | ||
agHelper.GetNClick(ReconnectLocators.SkipToAppBtn); | ||
cy.wait("@gitAutocommitTriggerApi").then((interception) => { | ||
expect(interception?.response?.statusCode).to.equal(200); | ||
expect( | ||
interception?.response?.body?.data?.autoCommitResponse, | ||
).to.equal("PUBLISHED"); | ||
agHelper.WaitUntilEleAppear(gitSync._autocommitStatusbar); | ||
}); | ||
cy.wait("@gitAutocommitProgressApi").then((interceptions) => { | ||
expect(interceptions?.response?.statusCode).to.equal(200); | ||
}); | ||
}); | ||
}); | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ | |
"postinstall": "yarn build", | ||
"test:unit": "yarn g:jest" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.