-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed the bug alert message is showing twice in select widget and add…
…ed cypress testing for the same
- Loading branch information
1 parent
fe0ccaa
commit 86c083e
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
app/client/cypress/e2e/Regression/ClientSide/Widgets/Select/Select4_spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { | ||
agHelper, | ||
draggableWidgets, | ||
deployMode, | ||
entityExplorer, | ||
locators, | ||
propPane, | ||
} from "../../../../../support/Objects/ObjectsCore"; | ||
|
||
describe( | ||
"Select widget tests", | ||
{ tags: ["@tag.Widget", "@tag.Select"] }, | ||
function () { | ||
before(() => { | ||
entityExplorer.DragDropWidgetNVerify(draggableWidgets.SELECT); | ||
}); | ||
|
||
|
||
it("Validate OnDropdownClose events are rendering show alert only once", () => { | ||
propPane.EnterJSContext( | ||
"onDropdownClose", | ||
"{{showAlert('Dropdown closed!','success')}}", | ||
true, | ||
); | ||
propPane.ToggleJSMode("onDropdownClose", false); | ||
deployMode.DeployApp(locators._widgetInDeployed(draggableWidgets.SELECT)); | ||
agHelper.GetNClick(locators._widgetInDeployed(draggableWidgets.SELECT)); | ||
agHelper.AssertElementVisibility( | ||
locators._selectOptionValue("Red"), | ||
true, | ||
); | ||
agHelper.GetNClick(locators._selectOptionValue("Red")); | ||
agHelper.ValidateToastMessage("Dropdown closed!"); | ||
}); | ||
}, | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters