-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2118 from appsmithorg/release
v1.2.22-rc
- Loading branch information
Showing
25 changed files
with
243 additions
and
85 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,41 @@ | ||
// This JSON file configures the eslint plugin. It supports comments as well as per the JSON5 spec | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["react", "@typescript-eslint", "prettier", "react-hooks"], | ||
"extends": [ | ||
"plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier/@typescript-eslint", | ||
"plugin:prettier/recommended", | ||
"plugin:cypress/recommended" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 2020, // Allows for the parsing of modern ECMAScript features | ||
"sourceType": "module", // Allows for the use of imports | ||
"ecmaFeatures": { | ||
"jsx": true // Allows for the parsing of JSX | ||
} | ||
}, | ||
"rules": { | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"react-hooks/rules-of-hooks": "error", | ||
"@typescript-eslint/no-use-before-define": 0, | ||
"@typescript-eslint/no-var-requires": 0, | ||
"import/no-webpack-loader-syntax": 0, | ||
"no-undef": 0, | ||
"react/prop-types": 0, | ||
"@typescript-eslint/explicit-module-boundary-types": 0 | ||
}, | ||
"settings": { | ||
"react": { | ||
"pragma": "React", | ||
// Tells eslint-plugin-react to automatically detect the version of React to use | ||
"version": "detect" | ||
} | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"cypress/globals": true | ||
} | ||
} |
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
56 changes: 56 additions & 0 deletions
56
...ess/integration/Smoke_TestSuite/Binding/Bind_TableWidget_selectedRow_Input_widget_spec.js
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,56 @@ | ||
/// <reference types="Cypress" /> | ||
|
||
const commonlocators = require("../../../locators/commonlocators.json"); | ||
const dsl = require("../../../fixtures/formInputTableDsl.json"); | ||
const widgetsPage = require("../../../locators/Widgets.json"); | ||
const publish = require("../../../locators/publishWidgetspage.json"); | ||
const testdata = require("../../../fixtures/testdata.json"); | ||
|
||
describe("Binding the table widget and input Widget", function() { | ||
before(() => { | ||
cy.addDsl(dsl); | ||
}); | ||
|
||
it("Input widget test with default value from table widget", function() { | ||
cy.SearchEntityandOpen("Input1"); | ||
cy.get(widgetsPage.defaultInput).type(testdata.defaultInputWidget); | ||
cy.get(commonlocators.editPropCrossButton).click(); | ||
cy.wait("@updateLayout").should( | ||
"have.nested.property", | ||
"response.body.responseMeta.status", | ||
200, | ||
); | ||
}); | ||
|
||
it("Input widget test with default value from table widget", function() { | ||
cy.SearchEntityandOpen("Input2"); | ||
cy.get(widgetsPage.defaultInput).type(testdata.defaultRowIndexBinding); | ||
cy.get(commonlocators.editPropCrossButton).click(); | ||
cy.wait("@updateLayout").should( | ||
"have.nested.property", | ||
"response.body.responseMeta.status", | ||
200, | ||
); | ||
}); | ||
|
||
it("validation of data displayed in input widgets based on selected row", function() { | ||
cy.SearchEntityandOpen("Table1"); | ||
cy.get(commonlocators.deflautSelectedRow) | ||
.last() | ||
.type("2", { force: true }); | ||
cy.get(commonlocators.editPropCrossButton).click(); | ||
cy.readTabledataPublish("2", "0").then(tabData => { | ||
const tabValue = tabData; | ||
expect(tabValue).to.be.equal("6788734"); | ||
cy.log("the value is" + tabValue); | ||
cy.get(publish.inputWidget + " " + "input") | ||
.first() | ||
.invoke("attr", "value") | ||
.should("contain", tabValue); | ||
cy.get(publish.inputWidget + " " + "input") | ||
.last() | ||
.invoke("attr", "value") | ||
.should("contain", 2); | ||
}); | ||
}); | ||
}); |
42 changes: 42 additions & 0 deletions
42
...tegration/Smoke_TestSuite/Binding/Binding_Table_Widget_DefaultSearch_Input_widget_spec.js
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,42 @@ | ||
const commonlocators = require("../../../locators/commonlocators.json"); | ||
const formWidgetsPage = require("../../../locators/FormWidgets.json"); | ||
const dsl = require("../../../fixtures/formInputTableDsl.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"); | ||
|
||
describe("Binding the Table and input Widget", function() { | ||
before(() => { | ||
cy.addDsl(dsl); | ||
}); | ||
|
||
it("Input widget test with default value from table widget", function() { | ||
cy.SearchEntityandOpen("Input1"); | ||
cy.get(widgetsPage.defaultInput).type(testdata.defaultInputWidget); | ||
cy.get(commonlocators.editPropCrossButton).click(); | ||
cy.wait("@updateLayout").should( | ||
"have.nested.property", | ||
"response.body.responseMeta.status", | ||
200, | ||
); | ||
}); | ||
|
||
it("validation of data displayed in input widgets based on search value set", function() { | ||
cy.SearchEntityandOpen("Table1"); | ||
cy.get(commonlocators.defaultSearchText) | ||
.last() | ||
.type("2736212", { force: true }); | ||
cy.get(commonlocators.editPropCrossButton).click(); | ||
cy.isSelectRow(0); | ||
cy.readTabledataPublish("0", "0").then(tabData => { | ||
const tabValue = tabData; | ||
expect(tabValue).to.be.equal("2736212"); | ||
cy.log("the value is" + tabValue); | ||
cy.get(publish.inputWidget + " " + "input") | ||
.first() | ||
.invoke("attr", "value") | ||
.should("contain", tabValue); | ||
}); | ||
}); | ||
}); |
2 changes: 2 additions & 0 deletions
2
...ypress/integration/Smoke_TestSuite/ExplorerTests/Entity_Explorer_Query_Datasource_spec.js
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
2 changes: 0 additions & 2 deletions
2
...cypress/integration/Smoke_TestSuite/OrganisationTests/CreateDuplicateAppWithinOrg_spec.js
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.