Skip to content

Commit

Permalink
test: updated flaky test for iframe (#28258)
Browse files Browse the repository at this point in the history
  • Loading branch information
NandanAnantharamu committed Oct 23, 2023
1 parent 2377a69 commit 15f380e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
locators,
entityExplorer,
propPane,
deployMode,
} from "../../../../../support/Objects/ObjectsCore";

import testdata from "../../../../../fixtures/testdata.json";
Expand Down Expand Up @@ -113,20 +114,22 @@ describe("Iframe widget Tests", function () {
agHelper.ValidateToastMessage("URL Changed");
});

// Border Color is failing Skipping to unblock - Fixing it in a separate PR by 20/10/2023
it.skip("3. Verify colors, borders and shadows", () => {
it("3. Verify colors, borders and shadows", () => {
propPane.MoveToTab("Style");

// Border Color
// Change Border Color
propPane.SelectColorFromColorPicker("bordercolor", 10);
agHelper.AssertCSS("iframe", "border-color", "rgb(185, 28, 28)");

// Verify border
// Change border
agHelper.GetNClick(propPane._segmentedControl("0px"));
agHelper.AssertCSS("iframe", "border-radius", "0px");

// Verify Box Shadow
// Change Box Shadow
agHelper.GetNClick(`${propPane._segmentedControl("0")}:contains('Large')`);

//Verify details in Deploy mode
deployMode.DeployApp();
agHelper.AssertCSS("iframe", "border-color", "rgb(185, 28, 28)");
agHelper.AssertCSS("iframe", "border-radius", "0px");
agHelper.AssertCSS(
"iframe",
"box-shadow",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ describe("Icon Button widget Tests", function () {
it("3. Validate icon can be selected from dropdown and icon can be searched by typing", () => {
// Select from dropdown
agHelper.GetNClick(`${locators._propertyControl}icon`);
agHelper.GetNClick(propPane._dataIcon("power"));
agHelper.GetElement(propPane._iconDropdown).scrollTo("top");
agHelper.GetNClick(propPane._dataIcon("airplane"));
agHelper.AssertElementVisibility(
`${locators._widgetInDeployed("iconbuttonwidget")} ${propPane._dataIcon(
"power",
"airplane",
)}`,
);

Expand Down
2 changes: 2 additions & 0 deletions app/client/cypress/support/Pages/PropertyPane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ export class PropertyPane {
control;

_dataIcon = (icon: string) => `[data-icon="${icon}"]`;
_iconDropdown = "[data-test-id='virtuoso-scroller']";

public OpenJsonFormFieldSettings(fieldName: string) {
this.agHelper.GetNClick(this._jsonFieldEdit(fieldName));
}
Expand Down

0 comments on commit 15f380e

Please sign in to comment.