Skip to content

Commit

Permalink
Merge branch 'release' of github.com:appsmithorg/appsmith into PageRe…
Browse files Browse the repository at this point in the history
…orderFix
  • Loading branch information
rahulramesha committed May 10, 2022
2 parents 8b75174 + 005c391 commit 3874515
Show file tree
Hide file tree
Showing 13 changed files with 2,116 additions and 285 deletions.
2 changes: 1 addition & 1 deletion .github/config.json

Large diffs are not rendered by default.

1,948 changes: 1,948 additions & 0 deletions app/client/cypress/fixtures/TableFilterImportApp.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ describe("AForce - Community Issues page validations", function () {
table.WaitUntilTableLoad()

//One filter
table.FilterTable("Type", "is exactly", "Bug")
table.OpenNFilterTable("Type", "is exactly", "Bug")
table.ReadTableRowColumnData(0, 1).then(($cellData) => {
expect($cellData).to.eq("[Bug]: Postgres queries unable to execute with more than 9 placeholders");
});
Expand All @@ -203,15 +203,15 @@ describe("AForce - Community Issues page validations", function () {
table.RemoveFilterNVerify("Question", true, false)

//Two filters - OR
table.FilterTable("Type", "starts with", "Trouble")
table.OpenNFilterTable("Type", "starts with", "Trouble")
table.ReadTableRowColumnData(0, 0).then(($cellData) => {
expect($cellData).to.eq("Troubleshooting");
});
table.ReadTableRowColumnData(0, 1).then(($cellData) => {
expect($cellData).to.eq("Renew expired SSL certificate on a self-hosted instance");
});

table.FilterTable("Title", "contains", "query", 'OR', 1)
table.OpenNFilterTable("Title", "contains", "query", 'OR', 1)
table.ReadTableRowColumnData(1, 0).then(($cellData) => {
expect($cellData).to.eq("Question");
});
Expand All @@ -221,12 +221,12 @@ describe("AForce - Community Issues page validations", function () {
table.RemoveFilterNVerify("Question", true, false)

//Two filters - AND
table.FilterTable("Votes", "greater than", "3")
table.OpenNFilterTable("Votes", "greater than", "3")
table.ReadTableRowColumnData(1, 1).then(($cellData) => {
expect($cellData).to.eq("Combine queries from different datasources");
});

table.FilterTable("Title", "contains", "button", 'AND', 1)
table.OpenNFilterTable("Title", "contains", "button", 'AND', 1)
table.ReadTableRowColumnData(0, 1).then(($cellData) => {
expect($cellData).to.eq("Change the video in the video player with a button click");
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ describe("Test Create Api and Bind to Table widget", function() {

cy.PublishtheApp();

cy.get(publishPage.buttonWidget).click();
cy.wait(3000);
cy.get("span:contains('Submit')")
.closest("div")
.click();

cy.wait("@postExecute").should(
"have.nested.property",
"response.body.responseMeta.status",
Expand All @@ -53,7 +57,11 @@ describe("Test Create Api and Bind to Table widget", function() {

cy.PublishtheApp();

cy.get(publishPage.buttonWidget).click();
cy.wait(3000);
cy.get("span:contains('Submit')")
.closest("div")
.click();

cy.wait("@postExecute").should(
"have.nested.property",
"response.body.responseMeta.status",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,17 @@ describe("Test Create Api and Bind to Table widget", function() {

it("works in the published version", () => {
cy.PublishtheApp();

cy.get(publishPage.buttonWidget).click();

cy.wait(3000);
cy.get("span:contains('Submit')")
.closest("div")
.click();
cy.wait("@postExecute").should(
"have.nested.property",
"response.body.responseMeta.status",
200,
);
cy.wait(5000);
cy.wait(3000);

cy.wait("@postExecute").should(
"have.nested.property",
"response.body.responseMeta.status",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
const commonlocators = require("../../../../locators/commonlocators.json");
const formWidgetsPage = require("../../../../locators/FormWidgets.json");
const dsl = require("../../../../fixtures/buttondsl.json");
const pages = require("../../../../locators/Pages.json");
const widgetsPage = require("../../../../locators/Widgets.json");
const publish = require("../../../../locators/publishWidgetspage.json");
const testdata = require("../../../../fixtures/testdata.json");
const dsl2 = require("../../../../fixtures/displayWidgetDsl.json");
const explorer = require("../../../../locators/explorerlocators.json");

describe("Binding the button Widgets and validating NavigateTo Page functionality", function() {
before(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ describe("Icon Button Widget Functionality", function() {
cy.get(widgetsPage.iconWidgetBtn).click({ force: true });
cy.get(commonlocators.toastmsg).contains("Icon Button Clicked");
cy.PublishtheApp();
cy.get(publishPage.iconWidgetBtn).click({ force: true });
cy.wait(2000);
cy.get(publishPage.iconWidgetBtn).click();
cy.get(commonlocators.toastmsg).contains("Icon Button Clicked");
cy.goToEditFromPublish();
});
Expand Down
Loading

0 comments on commit 3874515

Please sign in to comment.