Skip to content

Commit

Permalink
Merge pull request #32673 from appsmithorg/release
Browse files Browse the repository at this point in the history
15/04 Daily Promotion
  • Loading branch information
trishaanand authored Apr 15, 2024
2 parents 9b2f186 + d2fc0af commit 00e11e8
Show file tree
Hide file tree
Showing 87 changed files with 1,161 additions and 1,360 deletions.
2 changes: 1 addition & 1 deletion .github/config.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ describe(
// intercept features call for Anvil + WDS tests
featureFlagIntercept({
release_anvil_enabled: true,
ab_wds_enabled: true,
});
// Cleanup the canvas before each test
agHelper.SelectAllWidgets();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ describe(
// intercept features call for Anvil + WDS tests
featureFlagIntercept({
release_anvil_enabled: true,
ab_wds_enabled: true,
});
// Cleanup the canvas before each test
agHelper.SelectAllWidgets();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ describe(
// intercept features call for Anvil + WDS tests
featureFlagIntercept({
release_anvil_enabled: true,
ab_wds_enabled: true,
});
});
it("1. Suggested wds widgets for anvil layout", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe(
// intercept features call for Anvil + WDS tests
featureFlagIntercept({
release_anvil_enabled: true,
ab_wds_enabled: true,
});
// Cleanup the canvas before each test
agHelper.SelectAllWidgets();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ describe(
cy.get("[data-value='SHORT']").click({ force: true });
cy.wait(2000);
deployMode.DeployApp();
cy.readTableV2dataValidateCSS("0", "1", "height", "29px", true);
cy.readTableV2dataValidateCSS("0", "1", "height", "30px", true);
});
},
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import {
entityExplorer,
propPane,
agHelper,
draggableWidgets,
deployMode,
table,
locators,
} from "../../../../../support/Objects/ObjectsCore";

describe(
"Table widget v2: tableData change test",
{ tags: ["@tag.Widget", "@tag.Table"] },
function () {
before(() => {
agHelper.AddDsl("Table/ScrollbarDSL");
});

it("1. Table body should not have the scrollbar", function () {
let tableHeight = 0;

cy.get(".t--draggable-tablewidgetv2 .table").then(($table) => {
tableHeight = $table[0].clientHeight;
});

cy.get(".t--draggable-tablewidgetv2 .table .simplebar-content").then(
($scrollBox) =>
expect($scrollBox[0].clientHeight).to.be.equal(tableHeight),
);
});
},
);
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
table,
entityItems,
apiPage,
jsEditor,
} from "../../../../support/Objects/ObjectsCore";
import { Widgets } from "../../../../support/Pages/DataSources";
import EditorNavigation, {
Expand Down Expand Up @@ -446,11 +445,7 @@ WHERE aircraft_type = 'Passenger Plane'`;
propPane.EnterJSContext("onClick", `{{Query1.run()}}`);
deployMode.DeployApp(locators._widgetInDeployed(draggableWidgets.TABLE));
agHelper.ClickButton("Submit");
jsEditor.ConfirmationClick("No"); //Handling both No & Yes from confirmation dialog
agHelper.AssertContains("cancelled");
agHelper.WaitUntilAllToastsDisappear();
agHelper.ClickButton("Submit");
jsEditor.ConfirmationClick("Yes");

table.WaitUntilTableLoad(0, 0, "v2");
deployMode.NavigateBacktoEditor();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,6 @@ describe("JS Function Execution", { tags: ["@tag.JS"] }, function () {

agHelper.RefreshPage();
agHelper.Sleep(2000); //for confirmatiom modal to appear before clicking on "Yes" button for CI runs
// click "Yes" button for all onPageload && ConfirmExecute functions
for (let i = 0; i <= onPageLoadAndConfirmExecuteFunctionsLength - 1; i++) {
//agHelper.AssertElementPresence(jsEditor._dialog("Confirmation Dialog")); // Not working in edit mode
jsEditor.ConfirmationClick("Yes");
agHelper.Sleep(2000);
}
// Switch to settings tab and assert order
agHelper.GetNClick(jsEditor._settingsTab);
assertAsyncFunctionsOrder(FUNCTIONS_SETTINGS_DEFAULT_DATA);
Expand Down Expand Up @@ -461,12 +455,7 @@ describe("JS Function Execution", { tags: ["@tag.JS"] }, function () {
agHelper.Sleep();
agHelper.WaitUntilAllToastsDisappear();
agHelper.Sleep();
// click "Yes" button for all onPageload && ConfirmExecute functions
for (let i = 0; i <= onPageLoadAndConfirmExecuteFunctionsLength - 1; i++) {
//agHelper.AssertElementPresence(jsEditor._dialog("Confirmation Dialog")); // Not working in edit mode
jsEditor.ConfirmationClick("Yes");
agHelper.Sleep(2000); //for current pop up to close & next to appear!
}

EditorNavigation.SelectEntityByName(jsObj, EntityType.JSObject);
agHelper.GetNClick(jsEditor._settingsTab);
assertAsyncFunctionsOrder(FUNCTIONS_SETTINGS_DEFAULT_DATA);
Expand Down
Loading

0 comments on commit 00e11e8

Please sign in to comment.