Skip to content

Commit

Permalink
chore: fixing issue with delete and switch
Browse files Browse the repository at this point in the history
  • Loading branch information
brayn003 committed Dec 31, 2024
1 parent fc00587 commit 70a84fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe(
});

it("2. Create child branch, merge data from child branch, delete child branch verify the data should reflect in master ", () => {
cy.switchGitBranch("master");
gitSync.SwitchGitBranch("master");
gitSync.CreateGitBranch("", true);
cy.wait(1000);
PageLeftPane.switchSegment(PagePaneSegment.UI);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe(

// rename entities
it("3. makes branch specific resource updates", function () {
cy.switchGitBranch(childBranchKey);
gitSync.SwitchGitBranch(childBranchKey);
EditorNavigation.SelectEntityByName("ParentPage1", EntityType.Page);
entityExplorer.RenameEntityFromExplorer(
"ParentPage1",
Expand All @@ -142,11 +142,12 @@ describe(
PageLeftPane.switchSegment(PagePaneSegment.Queries);
entityExplorer.RenameEntityFromExplorer("ParentApi1", "ParentApiRenamed");

cy.switchGitBranch(parentBranchKey);

PageList.assertAbsence("ParentPageRenamed");
PageLeftPane.switchSegment(PagePaneSegment.Queries);
PageLeftPane.assertAbsence("ParentApiRenamed");
gitSync.SwitchGitBranch(parentBranchKey);
cy.wait("@gitCheckoutAPI").then(() => {
PageList.assertAbsence("ParentPageRenamed");
PageLeftPane.switchSegment(PagePaneSegment.Queries);
PageLeftPane.assertAbsence("ParentApiRenamed");
});
});

it("4. enables switching branch from the URL", () => {
Expand Down

0 comments on commit 70a84fa

Please sign in to comment.