PromucFlow_constructor/app/client/cypress/e2e/GSheet/GSheetViewEdit_Spec.ts
Aishwarya-U-R 6488effb4f
test: Cypress | Simplifying AddDsl method (#24991)
## Description
- This PR fixes below from Cypress suite to better developer experience
- Simplifies the AddDSL method
- Added AssertQueryTableResponse() & used
- SaveDataSource improved
- ReconnectDSbyName() created
- FirstTimeUserOnboarding_spec - 5th - Trail fix

#### Type of change
- Script fix (non-breaking change which fixes an issue)

## Testing
>
#### How Has This Been Tested?
- [X] Cypress CI runs

## Checklist:
#### QA activity:
- [X] Added `Test Plan Approved` label after Cypress tests were reviewed
2023-07-04 22:03:31 +05:30

38 lines
1.1 KiB
TypeScript

import {
agHelper,
dataSources,
deployMode,
entityExplorer,
homePage,
table,
} from "../../support/Objects/ObjectsCore";
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();
entityExplorer.SelectEntityByName("Api1");
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",
);
});
});