test: Cypress | CI Stabilize (#28609)
## Description **Flaky fixes below specs:** - QueryPane/S3_2_spec.ts - QueryPane/GoogleSheets_spec.ts - Widgets/TreeSelect/Single_Select_Tree_spec.ts - ClientSide/Widgets/Select/Select3_Spec.ts #### 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
This commit is contained in:
parent
30163933a9
commit
78c451e6e7
|
|
@ -68,6 +68,7 @@ describe("Select widget tests", function () {
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
agHelper.GetNClick(locators._selectOptionValue("Ulf Merbold"), 0, true);
|
agHelper.GetNClick(locators._selectOptionValue("Ulf Merbold"), 0, true);
|
||||||
|
agHelper.Sleep(); //for the new value to be set
|
||||||
agHelper.ReadSelectedDropDownValue().then(($selectedValue) => {
|
agHelper.ReadSelectedDropDownValue().then(($selectedValue) => {
|
||||||
expect($selectedValue).to.eq("Ulf Merbold");
|
expect($selectedValue).to.eq("Ulf Merbold");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,18 @@ import formWidgetsPage from "../../../../../locators/FormWidgets.json";
|
||||||
import publish from "../../../../../locators/publishWidgetspage.json";
|
import publish from "../../../../../locators/publishWidgetspage.json";
|
||||||
import commonlocators from "../../../../../locators/commonlocators.json";
|
import commonlocators from "../../../../../locators/commonlocators.json";
|
||||||
import widgetsPage from "../../../../../locators/Widgets.json";
|
import widgetsPage from "../../../../../locators/Widgets.json";
|
||||||
import * as _ from "../../../../../support/Objects/ObjectsCore";
|
|
||||||
|
import {
|
||||||
|
agHelper,
|
||||||
|
deployMode,
|
||||||
|
propPane,
|
||||||
|
} from "../../../../../support/Objects/ObjectsCore";
|
||||||
|
|
||||||
const toggleJSButton = (name) => `.t--property-control-${name} .t--js-toggle`;
|
const toggleJSButton = (name) => `.t--property-control-${name} .t--js-toggle`;
|
||||||
|
|
||||||
describe("Single Select Widget Functionality", function () {
|
describe("Single Select Widget Functionality", function () {
|
||||||
before(() => {
|
before(() => {
|
||||||
_.agHelper.AddDsl("TreeSelectDsl");
|
agHelper.AddDsl("TreeSelectDsl");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("1. Check isDirty meta property", function () {
|
it("1. Check isDirty meta property", function () {
|
||||||
|
|
@ -19,7 +24,7 @@ describe("Single Select Widget Functionality", function () {
|
||||||
);
|
);
|
||||||
// Change defaultText
|
// Change defaultText
|
||||||
cy.openPropertyPane("singleselecttreewidget");
|
cy.openPropertyPane("singleselecttreewidget");
|
||||||
cy.updateCodeInput(".t--property-control-defaultselectedvalue", "GREEN");
|
propPane.UpdatePropertyFieldValue("Default selected value", "GREEN");
|
||||||
// Check if isDirty is reset to false
|
// Check if isDirty is reset to false
|
||||||
cy.get(".t--widget-textwidget").should("contain", "false");
|
cy.get(".t--widget-textwidget").should("contain", "false");
|
||||||
// Interact with UI
|
// Interact with UI
|
||||||
|
|
@ -72,21 +77,21 @@ describe("Single Select Widget Functionality", function () {
|
||||||
|
|
||||||
it("5. To Unchecked Visible Widget", function () {
|
it("5. To Unchecked Visible Widget", function () {
|
||||||
cy.togglebarDisable(commonlocators.visibleCheckbox);
|
cy.togglebarDisable(commonlocators.visibleCheckbox);
|
||||||
_.deployMode.DeployApp();
|
deployMode.DeployApp();
|
||||||
cy.get(
|
cy.get(
|
||||||
publish.singleselecttreewidget + " " + ".rc-tree-select-single",
|
publish.singleselecttreewidget + " " + ".rc-tree-select-single",
|
||||||
).should("not.exist");
|
).should("not.exist");
|
||||||
_.deployMode.NavigateBacktoEditor();
|
deployMode.NavigateBacktoEditor();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("6. To Check Visible Widget", function () {
|
it("6. To Check Visible Widget", function () {
|
||||||
cy.openPropertyPane("singleselecttreewidget");
|
cy.openPropertyPane("singleselecttreewidget");
|
||||||
cy.togglebar(commonlocators.visibleCheckbox);
|
cy.togglebar(commonlocators.visibleCheckbox);
|
||||||
_.deployMode.DeployApp();
|
deployMode.DeployApp();
|
||||||
cy.get(
|
cy.get(
|
||||||
publish.singleselecttreewidget + " " + ".rc-tree-select-single",
|
publish.singleselecttreewidget + " " + ".rc-tree-select-single",
|
||||||
).should("be.visible");
|
).should("be.visible");
|
||||||
_.deployMode.NavigateBacktoEditor();
|
deployMode.NavigateBacktoEditor();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("7. To Check Option Not Found", function () {
|
it("7. To Check Option Not Found", function () {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ describe(
|
||||||
it("2. Bug # 25004 - Verify Google Sheets documentation opens", function () {
|
it("2. Bug # 25004 - Verify Google Sheets documentation opens", function () {
|
||||||
dataSources.NavigateToDSCreateNew();
|
dataSources.NavigateToDSCreateNew();
|
||||||
dataSources.CreatePlugIn(pluginName);
|
dataSources.CreatePlugIn(pluginName);
|
||||||
|
agHelper.Sleep(); //for plugin page to settle
|
||||||
deployMode.StubWindowNAssert(
|
deployMode.StubWindowNAssert(
|
||||||
locators._learnMore,
|
locators._learnMore,
|
||||||
"querying-google-sheets#create-queries",
|
"querying-google-sheets#create-queries",
|
||||||
|
|
|
||||||
|
|
@ -442,6 +442,7 @@ describe("Validate CRUD queries for Amazon S3 along with UI flow verifications",
|
||||||
dataSources.ValidateNSelectDropdown("Commands", "List files in bucket");
|
dataSources.ValidateNSelectDropdown("Commands", "List files in bucket");
|
||||||
agHelper.UpdateCodeInput(formControls.s3BucketName, bucketName);
|
agHelper.UpdateCodeInput(formControls.s3BucketName, bucketName);
|
||||||
dataSources.RunQuery();
|
dataSources.RunQuery();
|
||||||
|
agHelper.Sleep(); //for CI runs
|
||||||
agHelper.ScrollIntoView("." + dataSources._addSuggestedExisting);
|
agHelper.ScrollIntoView("." + dataSources._addSuggestedExisting);
|
||||||
dataSources.AddSuggestedWidget(
|
dataSources.AddSuggestedWidget(
|
||||||
Widgets.Table,
|
Widgets.Table,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user