Refactors SelectEntityByName to allow all types of selections but makes defining the Entity Type compulsory
40 lines
1.2 KiB
TypeScript
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",
|
|
);
|
|
});
|
|
});
|