test: adding tests for Fork app related to multiple workspace (#39263)
/ok-to-test tags="@tag.Sanity" <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/13503486922> > Commit: 88d22fbbbcc07ff136ef31850f6b3569147a6e16 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13503486922&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Sanity` > Spec: > <hr>Mon, 24 Feb 2025 17:37:30 UTC <!-- end of auto-generated comment: Cypress test results --> --------- Co-authored-by: “NandanAnantharamu” <“nandan@thinkify.io”>
This commit is contained in:
parent
72a8fa1955
commit
3788647394
|
|
@ -0,0 +1,61 @@
|
|||
import ReconnectLocators from "../../../../locators/ReconnectLocators";
|
||||
import {
|
||||
agHelper,
|
||||
homePage,
|
||||
locators,
|
||||
} from "../../../../support/Objects/ObjectsCore";
|
||||
import EditorNavigation from "../../../../support/Pages/EditorNavigation";
|
||||
|
||||
describe("Fork Application", {}, () => {
|
||||
let workspaceName: any;
|
||||
let appName: any;
|
||||
before(() => {
|
||||
cy.generateUUID().then((uid: any) => {
|
||||
workspaceName = uid;
|
||||
appName = uid + "App";
|
||||
homePage.NavigateToHome();
|
||||
homePage.CreateNewWorkspace(workspaceName);
|
||||
homePage.ImportApp(
|
||||
"OldApp_DSTesting1.9.24_Latest_29August2024_withuiforframeowrk.json",
|
||||
workspaceName,
|
||||
);
|
||||
agHelper.GetNClick(ReconnectLocators.SkipToAppBtn);
|
||||
});
|
||||
});
|
||||
|
||||
it("1. Verify fork application into same workspace", () => {
|
||||
agHelper.GetNClick(homePage._homeIcon);
|
||||
homePage.ForkApplication("OldApp_DSTesting1.9.24", workspaceName);
|
||||
agHelper.GetNClick(ReconnectLocators.SkipToAppBtn);
|
||||
// Open workspace and select forked app
|
||||
homePage.NavigateToHome();
|
||||
homePage.SelectWorkspace(workspaceName);
|
||||
homePage.EditAppFromAppHover("OldApp_DSTesting1.9.24 (1)");
|
||||
|
||||
EditorNavigation.NavigateToPage("Oracle", true);
|
||||
agHelper.AssertElementVisibility(locators._tableWidget);
|
||||
EditorNavigation.NavigateToPage("PostGreSQL", true);
|
||||
agHelper.AssertElementVisibility(locators._tableWidget);
|
||||
EditorNavigation.NavigateToPage("S3", true);
|
||||
agHelper.AssertElementVisibility(locators._tableWidget);
|
||||
});
|
||||
|
||||
it("2. Verify fork application into different workspace", () => {
|
||||
let newWorkspace = workspaceName + "WS2";
|
||||
homePage.CreateNewWorkspace(newWorkspace, true);
|
||||
homePage.SelectWorkspace(workspaceName);
|
||||
homePage.ForkApplication("OldApp_DSTesting1.9.24", newWorkspace);
|
||||
agHelper.GetNClick(ReconnectLocators.SkipToAppBtn);
|
||||
// Open workspace and select forked app
|
||||
homePage.NavigateToHome();
|
||||
homePage.SelectWorkspace(newWorkspace);
|
||||
homePage.EditAppFromAppHover("OldApp_DSTesting1.9.24");
|
||||
|
||||
EditorNavigation.NavigateToPage("Oracle", true);
|
||||
agHelper.AssertElementVisibility(locators._tableWidget);
|
||||
EditorNavigation.NavigateToPage("PostGreSQL", true);
|
||||
agHelper.AssertElementVisibility(locators._tableWidget);
|
||||
EditorNavigation.NavigateToPage("S3", true);
|
||||
agHelper.AssertElementVisibility(locators._tableWidget);
|
||||
});
|
||||
});
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user