Skip to content

Commit

Permalink
/Widgets/Radio/Radio2_spec.ts split trial
Browse files Browse the repository at this point in the history
  • Loading branch information
Aishwarya-U-R committed Sep 27, 2023
1 parent e021b10 commit 2696c53
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ describe("Radio Widget test cases", function () {
.GetWidgetCSSHeight(
locators._widgetInDeployed(draggableWidgets.RADIO_GROUP),
)
.then((currentHeight) => {
.then((currentHeight: any) => {
const updatedHeight = parseInt(currentHeight?.split("px")[0]);
expect(updatedHeight).to.be.greaterThan(130);
});
Expand All @@ -319,6 +319,9 @@ describe("Radio Widget test cases", function () {
agHelper.GetElement("@eleWidth").then((currentWidth) => {
expect(currentWidth).to.be.greaterThan(420);
});
});

it("6. Validate general section in radio group - Part2", function () {
//Disable - should throw error for non boolean values
deployMode.NavigateBacktoEditor();
entityExplorer.SelectEntityByName("RadioGroup1", "Widgets");
Expand Down Expand Up @@ -365,15 +368,15 @@ 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();
//JS Object
jsEditor.CreateJSObject(
`export default {
myVar1: [{
label:'test',
value:'test'}],
myFun1 () {
myFun1 () {
RadioGroup1.setData(this.myVar1);
RadioGroup1.isVisible? RadioGroup1.setDisabled(true):RadioGroup1.setVisibility(false)
}
Expand Down

0 comments on commit 2696c53

Please sign in to comment.