test: Cypress | CI Stabilize (#27622)

## Description
- This PR does flaky fox for:
- QueryPane/S3_2_spec.ts fix
- Datasources/Oracle_Spec.ts fix
- ClientSide/Widgets/Radio/Radio2_spec.ts
- ServerSide/Datasources/Firestore_Basic_Spec.ts

#### Type of change
- Script update (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
This commit is contained in:
Aishwarya-U-R 2023-09-27 22:54:27 +05:30 committed by GitHub
parent ab6b3e4e4a
commit df31f8def2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 18 deletions

View File

@ -6,8 +6,7 @@ export default defineConfig({
requestTimeout: 60000, requestTimeout: 60000,
responseTimeout: 60000, responseTimeout: 60000,
pageLoadTimeout: 60000, pageLoadTimeout: 60000,
videoUploadOnPasses: false, video: true,
videoCompression: false,
numTestsKeptInMemory: 5, numTestsKeptInMemory: 5,
experimentalMemoryManagement: true, experimentalMemoryManagement: true,
reporterOptions: { reporterOptions: {

View File

@ -310,7 +310,7 @@ describe("Radio Widget test cases", function () {
.GetWidgetCSSHeight( .GetWidgetCSSHeight(
locators._widgetInDeployed(draggableWidgets.RADIO_GROUP), locators._widgetInDeployed(draggableWidgets.RADIO_GROUP),
) )
.then((currentHeight) => { .then((currentHeight: any) => {
const updatedHeight = parseInt(currentHeight?.split("px")[0]); const updatedHeight = parseInt(currentHeight?.split("px")[0]);
expect(updatedHeight).to.be.greaterThan(130); expect(updatedHeight).to.be.greaterThan(130);
}); });
@ -319,6 +319,9 @@ describe("Radio Widget test cases", function () {
agHelper.GetElement("@eleWidth").then((currentWidth) => { agHelper.GetElement("@eleWidth").then((currentWidth) => {
expect(currentWidth).to.be.greaterThan(420); expect(currentWidth).to.be.greaterThan(420);
}); });
});
it("6. Validate general section in radio group - Part2", function () {
//Disable - should throw error for non boolean values //Disable - should throw error for non boolean values
deployMode.NavigateBacktoEditor(); deployMode.NavigateBacktoEditor();
entityExplorer.SelectEntityByName("RadioGroup1", "Widgets"); entityExplorer.SelectEntityByName("RadioGroup1", "Widgets");
@ -365,7 +368,7 @@ describe("Radio Widget test cases", function () {
}); });
}); });
it("6. Validate set property methods for Radio group", () => { it("7. Validate set property methods for Radio group", () => {
deployMode.NavigateBacktoEditor(); deployMode.NavigateBacktoEditor();
//JS Object //JS Object
jsEditor.CreateJSObject( jsEditor.CreateJSObject(

View File

@ -171,15 +171,9 @@ describe("Validate Oracle DS", () => {
agHelper.RenameWithInPane("CreateAircraft"); agHelper.RenameWithInPane("CreateAircraft");
dataSources.EnterQuery(query); dataSources.EnterQuery(query);
dataSources.RunQuery(); dataSources.RunQuery();
entityExplorer.ExpandCollapseEntity("Datasources");
entityExplorer.ExpandCollapseEntity(dataSourceName); dataSources.AssertTableInVirtuosoList(dataSourceName, guid.toUpperCase());
entityExplorer.ActionContextMenuByEntityName({
entityNameinLeftSidebar: dataSourceName,
action: "Refresh",
});
agHelper.AssertElementVisibility(
entityExplorer._entityNameInExplorer(guid.toUpperCase()),
);
query = `INSERT INTO ${guid} ( query = `INSERT INTO ${guid} (
aircraft_id, aircraft_id,
aircraft_type, aircraft_type,

View File

@ -435,6 +435,7 @@ describe("Validate CRUD queries for Amazon S3 along with UI flow verifications",
it("6. Verify Adding Suggested widget with specific name functionality - S3 ", () => { it("6. Verify Adding Suggested widget with specific name functionality - S3 ", () => {
entityExplorer.DragDropWidgetNVerify(draggableWidgets.TABLE); entityExplorer.DragDropWidgetNVerify(draggableWidgets.TABLE);
agHelper.Sleep(2500); //allowing sometime for widget to settle down
dataSources.NavigateFromActiveDS(datasourceName, true); dataSources.NavigateFromActiveDS(datasourceName, true);
agHelper.GetObjectName().then(($queryName) => { agHelper.GetObjectName().then(($queryName) => {
entityExplorer.SelectEntityByName($queryName, "Queries/JS"); entityExplorer.SelectEntityByName($queryName, "Queries/JS");

View File

@ -283,8 +283,7 @@ export class DataSources {
_stagingTab = "[data-testid='t--ds-data-filter-Staging']"; _stagingTab = "[data-testid='t--ds-data-filter-Staging']";
_graphQlDsFromRightPane = (dsName: string) => _graphQlDsFromRightPane = (dsName: string) =>
"//div/span[text() ='" + dsName + "']"; "//div/span[text() ='" + dsName + "']";
_imgFireStoreLogo = _imgFireStoreLogo = "//img[contains(@src, 'firestore.svg')]";
"img[src='https://assets.appsmith.com/logo/firestore.svg']";
private _dsVirtuosoElement = (dsName: string) => private _dsVirtuosoElement = (dsName: string) =>
`[data-testid='t--entity-item-${dsName}'] + div .t--schema-virtuoso-container`; `[data-testid='t--entity-item-${dsName}'] + div .t--schema-virtuoso-container`;
private _dsVirtuosoList = `[data-test-id="virtuoso-item-list"]`; private _dsVirtuosoList = `[data-test-id="virtuoso-item-list"]`;

View File

@ -5,8 +5,7 @@ export default defineConfig({
requestTimeout: 60000, requestTimeout: 60000,
responseTimeout: 60000, responseTimeout: 60000,
pageLoadTimeout: 60000, pageLoadTimeout: 60000,
videoUploadOnPasses: false, video: true,
videoCompression: false,
numTestsKeptInMemory: 5, numTestsKeptInMemory: 5,
experimentalMemoryManagement: true, experimentalMemoryManagement: true,
reporterOptions: { reporterOptions: {