2021-03-05 08:32:54 +00:00
|
|
|
const dsl = require("../../../fixtures/ModalWidgetDsl.json");
|
|
|
|
|
|
|
|
|
|
describe("Modal Functionality ", function() {
|
2021-03-12 09:54:51 +00:00
|
|
|
it("Collapse the tabs of Property pane", function() {
|
2021-03-05 08:32:54 +00:00
|
|
|
// Add a modal widget from teh entity explorer
|
2021-03-12 09:54:51 +00:00
|
|
|
// Click on the property Pane
|
2021-03-05 08:32:54 +00:00
|
|
|
// Select Form Type as Modal Type
|
|
|
|
|
// Add any widget on the Modal
|
|
|
|
|
// Add a table
|
|
|
|
|
// Click on the property pane
|
|
|
|
|
// Add a custom column
|
|
|
|
|
// Click on control pane of the column
|
|
|
|
|
// Select Column type as button
|
|
|
|
|
// Add action to "on click"
|
|
|
|
|
// Add Modal
|
2021-03-12 09:54:51 +00:00
|
|
|
// Close the modal
|
2021-03-05 08:32:54 +00:00
|
|
|
// Click on the Table Action button
|
|
|
|
|
// Ensure the modal pop up
|
2021-03-12 09:54:51 +00:00
|
|
|
});
|
2021-03-05 08:32:54 +00:00
|
|
|
|
2021-03-12 09:54:51 +00:00
|
|
|
it("Rename a modal", function() {
|
|
|
|
|
// Click on the entity explore
|
|
|
|
|
// Ensure modal is dispalyed to user
|
|
|
|
|
// Rename the modal
|
|
|
|
|
// Ensure the modal name is replaced in the table
|
|
|
|
|
// Click on the action button
|
|
|
|
|
// Ensure the modal pop up
|
|
|
|
|
});
|
|
|
|
|
it("Convert Modal to ", function() {
|
|
|
|
|
// Click on the entity explore
|
|
|
|
|
// Ensure modal is dispalyed to user
|
2021-03-05 08:32:54 +00:00
|
|
|
// Add a button widget
|
2021-03-12 09:54:51 +00:00
|
|
|
// Add an "On click" action with modal
|
2021-03-05 08:32:54 +00:00
|
|
|
// Click on the button
|
|
|
|
|
// Ensure the Alert modal is dispalyed to user
|
|
|
|
|
// Now click on the Modal in entity explorer
|
|
|
|
|
// Convert the Modal from "Alert" to "Form"
|
2021-03-12 09:54:51 +00:00
|
|
|
// Click on the button
|
|
|
|
|
// Ensure a form modal is dispalyed to user
|
|
|
|
|
});
|
|
|
|
|
});
|