PromucFlow_constructor/app/client/cypress/manual_TestSuite/GSheetViewEdit_Spec.ts
Hetu Nandu 0cd9bc6922
refactor: Cypress SelectEntityByName (#29012)
Refactors SelectEntityByName to allow all types of selections but makes
defining the Entity Type compulsory
2023-11-23 15:46:13 +05:30

40 lines
1.2 KiB
TypeScript

import {
agHelper,
dataSources,
deployMode,
homePage,
table,
} from "../support/Objects/ObjectsCore";
import EditorNavigation, {
EntityType,
} from "../support/Pages/EditorNavigation";
describe.skip("Authorized GSheet - in Edit & view mode", function () {
it("Open already created GSheet in View mode, navigate back to Edit mode, Validate dropdown values", () => {
homePage.NavigateToHome();
homePage.FilterApplication("GSheet");
agHelper.GetElement(homePage._applicationCard).trigger("mouseover");
homePage.LaunchAppFromAppHover();
table.WaitUntilTableLoad(0, 0, "v2");
deployMode.NavigateBacktoEditor();
//homePage.EditAppFromAppHover();
EditorNavigation.SelectEntityByName("Api1", EntityType.Api);
dataSources.ValidateNSelectDropdown(
"Spreadsheet",
"Trial-GSheetAutomation",
);
dataSources.ValidateNSelectDropdown("Sheet name", "Analysis");
dataSources.RunQuery();
dataSources.AssertQueryResponseHeaders([
"Failing Spec",
"Reason",
"Pod",
"rowIndex",
]);
dataSources.AssertQueryTableResponse(
0,
"Regression_TestSuite/ClientSideTests/Git/GitWithJSLibrary/GitwithCustomJSLibrary_spec.js",
);
});
});