Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: updated tests with aghelper table methods #33737

Merged
merged 7 commits into from
May 31, 2024

Conversation

NandanAnantharamu
Copy link
Collaborator

@NandanAnantharamu NandanAnantharamu commented May 27, 2024

updated isSelectedRow() with table_SelectedRow()

/ok-to-test tags="@tag.All"

Tip

🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9312024901
Commit: c308cbb
Cypress dashboard url: Click here!

@github-actions github-actions bot added skip-changelog Adding this label to a PR prevents it from being listed in the changelog Test labels May 27, 2024
@NandanAnantharamu
Copy link
Collaborator Author

/ci-test-limit

Copy link

Copy link
Contributor

coderabbitai bot commented May 27, 2024

Walkthrough

Walkthrough

The changes primarily involve replacing instances of the cy.isSelectRow method with the table.SelectTableRow method across various Cypress test files. This update enhances the row selection functionality and introduces additional parameters for more granular control. Additionally, several files now import the table object from the ObjectsCore module to support these changes.

Changes

Files Change Summary
Table_DefaultSearch_Input_spec.js, TableV2_DefaultSearch_Input_spec.js Replaced cy.wait("@updateLayout").isSelectRow(0) with cy.wait("@updateLayout"); _.table.SelectTableRow(0, 0, true, "v2");
TextTableV2_spec.js, Migration_Spec.js, AddWidget_spec.js Added table import and replaced cy.isSelectRow with table.SelectTableRow
Table_spec.js, TableV2_PropertyPane_1_spec.js, TableV2Widgets_NavigateTo_Validation_spec.js, JSObject_Postgress_Table_spec.js, AddWidgetTableAndBind_spec.js Replaced cy.isSelectRow with table.SelectTableRow
commands.js Added table declaration and replaced cy.isSelectRow with table.SelectTableRow in specific functions

Sequence Diagram(s) (Beta)

sequenceDiagram
    participant Cypress Test as Cypress Test
    participant Table Object as table
    participant Backend as Backend

    Cypress Test->>Backend: cy.wait("@updateLayout")
    Backend-->>Cypress Test: Layout updated
    Cypress Test->>Table Object: table.SelectTableRow(0, 0, true, "v2")
    Table Object-->>Cypress Test: Row 0 Selected
Loading
sequenceDiagram
    participant Cypress Test as Cypress Test
    participant Table Object as table

    Cypress Test->>Table Object: table.SelectTableRow(1, 0, true, "v2")
    Table Object-->>Cypress Test: Row 1 Selected
Loading

Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between c198021 and c308cbb.

Files selected for processing (5)
  • app/client/cypress/e2e/Regression/ClientSide/Binding/JSObject_Postgress_Table_spec.js (2 hunks)
  • app/client/cypress/e2e/Regression/ClientSide/Widgets/Migration_Spec.js (3 hunks)
  • app/client/cypress/e2e/Regression/ServerSide/QueryPane/AddWidgetTableAndBind_spec.js (3 hunks)
  • app/client/cypress/e2e/Regression/ServerSide/QueryPane/AddWidget_spec.js (2 hunks)
  • app/client/cypress/support/commands.js (4 hunks)
Additional context used
Learnings (2)
app/client/cypress/e2e/Regression/ServerSide/QueryPane/AddWidgetTableAndBind_spec.js (1)
User: Aishwarya-U-R
PR: appsmithorg/appsmith#29405
File: app/client/cypress/e2e/Regression/ClientSide/Binding/TableV2_Widget_API_Pagination_spec.js:37-41
Timestamp: 2023-12-08T08:59:53.560Z
Learning: The pull request titled "test: Cypress | Replace static with Dynamic waits - Part 1" is part of a phased approach where only certain test specifications are targeted for static wait removal in the initial phase. Future phases will address additional specs.
app/client/cypress/e2e/Regression/ClientSide/Binding/JSObject_Postgress_Table_spec.js (1)
User: Aishwarya-U-R
PR: appsmithorg/appsmith#29405
File: app/client/cypress/e2e/Regression/ClientSide/Binding/TableV2_Widget_API_Pagination_spec.js:37-41
Timestamp: 2023-12-08T08:59:53.560Z
Learning: The pull request titled "test: Cypress | Replace static with Dynamic waits - Part 1" is part of a phased approach where only certain test specifications are targeted for static wait removal in the initial phase. Future phases will address additional specs.
Biome
app/client/cypress/e2e/Regression/ServerSide/QueryPane/AddWidget_spec.js

[error] 32-32: Template literals are preferred over string concatenation.


[error] 12-36: This function expression can be turned into an arrow function.

app/client/cypress/e2e/Regression/ServerSide/QueryPane/AddWidgetTableAndBind_spec.js

[error] 49-49: Template literals are preferred over string concatenation.


[error] 68-68: Template literals are preferred over string concatenation.


[error] 71-71: Template literals are preferred over string concatenation.


[error] 20-90: This function expression can be turned into an arrow function.

app/client/cypress/e2e/Regression/ClientSide/Binding/JSObject_Postgress_Table_spec.js

[error] 44-44: Template literals are preferred over string concatenation.


[error] 54-54: Template literals are preferred over string concatenation.


[error] 68-72: Template literals are preferred over string concatenation.


[error] 89-89: Template literals are preferred over string concatenation.


[error] 14-102: This function expression can be turned into an arrow function.


[error] 43-43: This let declares a variable that is only assigned once.


[error] 88-88: This let declares a variable that is only assigned once.

app/client/cypress/e2e/Regression/ClientSide/Widgets/Migration_Spec.js

[error] 52-53: Template literals are preferred over string concatenation.


[error] 61-62: Template literals are preferred over string concatenation.


[error] 70-71: Template literals are preferred over string concatenation.


[error] 114-115: Template literals are preferred over string concatenation.


[error] 117-118: Template literals are preferred over string concatenation.


[error] 157-158: Template literals are preferred over string concatenation.


[error] 175-176: Template literals are preferred over string concatenation.


[error] 182-183: Template literals are preferred over string concatenation.


[error] 184-184: Use === instead of ==.
== is only allowed when comparing against null


[error] 195-195: Template literals are preferred over string concatenation.


[error] 212-213: Template literals are preferred over string concatenation.


[error] 250-251: Template literals are preferred over string concatenation.


[error] 16-315: This function expression can be turned into an arrow function.


[error] 15-316: This function expression can be turned into an arrow function.


[error] 130-131: Use let or const instead of var.


[error] 183-183: This let declares a variable that is only assigned once.

app/client/cypress/support/commands.js

[error] 16-16: A Node.js builtin module should be imported with the node: protocol.


[error] 113-113: The computed expression can be simplified without the use of a string literal.


[error] 116-116: The computed expression can be simplified without the use of a string literal.


[error] 145-149: Change to an optional chain.


[error] 146-149: Prefer for...of instead of forEach.


[error] 209-209: Template literals are preferred over string concatenation.


[error] 221-221: Template literals are preferred over string concatenation.


[error] 347-347: Template literals are preferred over string concatenation.


[error] 353-353: Template literals are preferred over string concatenation.


[error] 356-356: Template literals are preferred over string concatenation.


[error] 368-368: Declare variables separately


[error] 377-377: Template literals are preferred over string concatenation.


[error] 386-391: Template literals are preferred over string concatenation.


[error] 414-414: Template literals are preferred over string concatenation.


[error] 417-417: Template literals are preferred over string concatenation.


[error] 432-432: Template literals are preferred over string concatenation.


[error] 435-435: Template literals are preferred over string concatenation.


[error] 608-608: Template literals are preferred over string concatenation.


[error] 770-770: The computed expression can be simplified without the use of a string literal.


[error] 788-788: The computed expression can be simplified without the use of a string literal.

Additional comments not posted (7)
app/client/cypress/e2e/Regression/ServerSide/QueryPane/AddWidget_spec.js (1)

30-30: Update string concatenation to use template literals for better readability and performance.

- cy.log("the value is " + tabData);
+ cy.log(`the value is ${tabData}`);

Likely invalid or redundant comment.

app/client/cypress/e2e/Regression/ServerSide/QueryPane/AddWidgetTableAndBind_spec.js (1)

46-46: Update string concatenation to use template literals for better readability and performance.

- cy.log("the value is" + tabValue);
+ cy.log(`the value is ${tabValue}`);

Also applies to: 65-65, 70-70

Likely invalid or redundant comment.

app/client/cypress/e2e/Regression/ClientSide/Binding/JSObject_Postgress_Table_spec.js (1)

41-41: Update string concatenation to use template literals for better readability and performance.

- cy.log("the value is" + tabValue);
+ cy.log(`the value is ${tabValue}`);

Also applies to: 86-86

Likely invalid or redundant comment.

app/client/cypress/e2e/Regression/ClientSide/Widgets/Migration_Spec.js (1)

123-123: Update string concatenation to use template literals for better readability and performance.

- cy.log("header set is:" + x);
+ cy.log(`header set is: ${x}`);

Also applies to: 210-210

Likely invalid or redundant comment.

app/client/cypress/support/commands.js (3)

51-51: Ensure that the table object from ObjectsRegistry is used consistently across the file.


900-900: The updated method table.SelectTableRow is used correctly here with the new parameters.


874-874: Replace the deprecated method cy.readTabledata with a new method that supports the updated table row selection.

- cy.readTabledata("0", "5").then((tabData) => {
+ cy.readTableV2data("0", "5").then((tabData) => {

Likely invalid or redundant comment.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9249911713.
Cypress dashboard url: Click here!
All cypress tests have passed 🎉🎉🎉

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 9

Outside diff range and nitpick comments (8)
app/client/cypress/limited-tests.txt (1)

Line range hint 34-34: Correct the grammatical error for clarity.

- #ci-test-limit uses this file to run minimum of specs. Do not run entire suite with this command.
+ #ci-test-limit uses this file to run a minimum number of specs. Do not run the entire suite with this command.
app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/non_ascii_column_name_spec.js (1)

Line range hint 26-33: Consider using a for...of loop for better readability and performance.

- Object.keys(data[0]).forEach((column) => {
-   cy.get(`.t--widget-tablewidgetv2 .thead .th[data-header="${column}"]`).should("exist");
- });
+ for (const column of Object.keys(data[0])) {
+   cy.get(`.t--widget-tablewidgetv2 .thead .th[data-header="${column}"]`).should("exist");
+ }
app/client/cypress/e2e/Regression/ClientSide/Binding/Input_NavigateTo_validation_spec.js (2)

Line range hint 36-43: Consider converting function expressions to arrow functions for consistency and clarity.

- function () {
+ () => {

Also applies to: 45-55, 57-79, 23-80


Line range hint 64-64: Use template literals for string concatenation.

- cy.log("the value is" + tabValue);
+ cy.log(`the value is ${tabValue}`);
app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/TableV2_Button_Icon_validation_spec.js (1)

Line range hint 15-29: Consider converting function expressions to arrow functions for consistency and clarity.

- function () {
+ () => {

Also applies to: 31-55, 57-75, 77-93, 10-94

app/client/cypress/support/commands.js (3)

Line range hint 16-16: Use the node: protocol when importing Node.js built-in modules.

- const path = require("path");
+ const path = require("node:path");

Line range hint 145-149: Simplify the handling of URL query parameters using optional chaining and for...of.

- arr &&
- arr.forEach((param) => {
-   const [key, value] = param.split("=");
-   paramObj[key] = value;
- });
+ for (const param of arr ?? []) {
+   const [key, value] = param.split("=");
+   paramObj[key] = value;
+ }

Line range hint 209-209: Replace string concatenation with template literals for better readability and performance.

- urlObject.pathname = urlObject.pathname + "/edit";
+ urlObject.pathname = `${urlObject.pathname}/edit`;

- "docker run -d --name " + containerName + ' -p 8081:80 -p 9002:9002 -v "' + path + '/stacks:/appsmith-stacks" ' + version;
+ `docker run -d --name ${containerName} -p 8081:80 -p 9002:9002 -v "${path}/stacks:/appsmith-stacks" ${version}`;

Also applies to: 221-221, 347-347, 353-353, 356-356, 377-377, 386-391, 414-414, 417-417, 432-432, 435-435, 581-581, 615-615

Comment on lines 34 to 35
cy.wait("@updateLayout")
_.table.SelectTableRow(0, 0, true, "v2");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor to use arrow functions for consistency and modern JavaScript practices.

-    it("1. Input widget test with default value from table widget", function () {
+    it("1. Input widget test with default value from table widget", () => {

Committable suggestion was skipped due low confidence.

@@ -43,7 +44,7 @@ describe(
cy.readTabledataPublish("1", "0").then((tabDataP) => {
const tabValueP = tabDataP;
cy.log(tabValueP);
cy.isSelectRow(1);
table.SelectTableRow(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor to use arrow functions for consistency and modern JavaScript practices.

-    it("2. Validate NavigateTo Page functionality ", function () {
+    it("2. Validate NavigateTo Page functionality ", () => {

Committable suggestion was skipped due low confidence.

@@ -55,7 +56,7 @@ describe(
cy.wait(2000);
deployMode.DeployApp();
cy.get(widgetsPage.chartWidget).should("not.exist");
cy.isSelectRow(1);
table.SelectTableRow(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor to use arrow functions for consistency and modern JavaScript practices.

-    it("1. Create MyPage and valdiate if its successfully created", function () {
+    it("1. Create MyPage and valdiate if its successfully created", () => {

Committable suggestion was skipped due low confidence.

@@ -35,7 +36,7 @@ describe(
});

it("2. validation of default data displayed in all widgets based on row selected", function () {
cy.isSelectRow(1);
table.SelectTableRow(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor to use arrow functions for consistency and modern JavaScript practices.

-    it("2. validation of default data displayed in all widgets based on row selected", function () {
+    it("2. validation of default data displayed in all widgets based on row selected", () => {

Committable suggestion was skipped due low confidence.

Comment on lines +15 to +20
_.table.SelectTableRow(1);
//should be 2 if we decide to show trigger errors in the debugger.
_.debuggerHelper.AssertErrorCount(1);
// Fix code
cy.testJsontext("onrowselected", "{{console.log('test')}}");
cy.isSelectRow(1);
_.table.SelectTableRow(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated method usage aligns with new testing standards. Consider converting function expressions to arrow functions for consistency and modern JavaScript practices.

- before(() => {
+ before(() => {
- it("1. Trigger errors need to be shown in the errors tab", function () {
+ it("1. Trigger errors need to be shown in the errors tab", () => {

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
_.table.SelectTableRow(1);
//should be 2 if we decide to show trigger errors in the debugger.
_.debuggerHelper.AssertErrorCount(1);
// Fix code
cy.testJsontext("onrowselected", "{{console.log('test')}}");
cy.isSelectRow(1);
_.table.SelectTableRow(1);
_.table.SelectTableRow(1);
//should be 2 if we decide to show trigger errors in the debugger.
_.debuggerHelper.AssertErrorCount(1);
// Fix code
cy.testJsontext("onrowselected", "{{console.log('test')}}");
_.table.SelectTableRow(1);
before(() => {
// setup code
});
it("1. Trigger errors need to be shown in the errors tab", () => {
// test code
});

@@ -42,7 +43,7 @@ describe(
const tableRowTxt = text;
dataSources.AddSuggestedWidget(Widgets.Table);
EditorNavigation.SelectEntityByName("Table1", EntityType.Widget);
cy.isSelectRow(1);
table.SelectTableRow(1, 0, true, "v2");
cy.readTableV2dataPublish("1", "0").then((tabData) => {
const tabValue = tabData;
cy.log("the value is" + tabValue);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using template literals for string concatenation and converting function expressions to arrow functions.

- cy.log("the value is" + tabValue);
+ cy.log(`the value is ${tabValue}`);
- function () {
+ () => {

Also applies to: 68-68, 71-71, 20-90

Committable suggestion was skipped due low confidence.

@@ -61,7 +62,7 @@ describe(
cy.wait(2000);
deployMode.DeployApp();
cy.get(widgetsPage.chartWidget).should("not.exist");
cy.isSelectRow(1);
table.SelectTableRow(1, 0, true, "v2");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor to use arrow functions for consistency and modern JavaScript practices.

-    it("2. Validate NavigateTo Page functionality ", function () {
+    it("2. Validate NavigateTo Page functionality ", () => {

Committable suggestion was skipped due low confidence.

@@ -27,7 +27,7 @@ describe(
cy.runQuery();
dataSources.AddSuggestedWidget(Widgets.Table);
EditorNavigation.SelectEntityByName("Table1", EntityType.Widget);
cy.isSelectRow(1);
table.SelectTableRow(1, 0, true, "v2");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated method usage is appropriate. Consider using template literals for better readability and performance in string operations.

- cy.log("the value is " + tabData);
+ cy.log(`the value is ${tabData}`);

Committable suggestion was skipped due low confidence.

Comment on lines 32 to 34
// cy.wait("@updateLayout").isSelectRow(0);
cy.wait("@updateLayout");
_.table.SelectTableRow(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated method usage is appropriate. Consider using template literals for better readability and performance in string operations.

- cy.log("the value is" + tabValue);
+ cy.log(`the value is ${tabValue}`);

Committable suggestion was skipped due low confidence.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range and nitpick comments (3)
app/client/cypress/support/commands.js (3)

Line range hint 16-16: Use the node: protocol when importing Node.js built-in modules.

- const path = require("path");
+ const path = require("node:path");

This change ensures compatibility with newer Node.js versions and follows best practices.


Line range hint 145-149: Simplify the URL parameter extraction using optional chaining.

- const arr = url.split("?")[1]?.split("&");
- const paramObj = {};
- arr &&
-   arr.forEach((param) => {
-     const [key, value] = param.split("=");
-     paramObj[key] = value;
-   });
+ const paramObj = Object.fromEntries(new URLSearchParams(url.split("?")[1] || ""));

This refactor simplifies the code and improves readability.


Line range hint 209-209: Use template literals for string concatenation.

- urlObject.pathname = urlObject.pathname + "/edit";
+ urlObject.pathname = `${urlObject.pathname}/edit`;

- "api/v1/layouts/" + layoutId + "/pages/" + pageid + "?applicationId=" + appId
+ `api/v1/layouts/${layoutId}/pages/${pageid}?applicationId=${appId}`

- "docker stop " + containerName
+ `docker stop ${containerName}`

- "docker inspect -f '{{ .Mounts }}' " + containerName + "|awk '{print $2}'"
+ `docker inspect -f '{{ .Mounts }}' ${containerName}|awk '{print $2}'`

Using template literals improves readability and is a modern JavaScript practice.

Also applies to: 221-221, 347-347, 353-353, 356-356, 377-377, 386-391, 414-414, 417-417, 432-432, 435-435, 608-608

@NandanAnantharamu NandanAnantharamu added the ok-to-test Required label for CI label May 30, 2024
@NandanAnantharamu NandanAnantharamu removed the ok-to-test Required label for CI label May 30, 2024
@NandanAnantharamu NandanAnantharamu added the ok-to-test Required label for CI label May 30, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range and nitpick comments (5)
app/client/cypress/e2e/Regression/ClientSide/Binding/TableV2_DefaultSearch_Input_spec.js (3)

Line range hint 39-39: Use template literals for string concatenation for better readability and performance.

- cy.log("the value is" + tabValue);
+ cy.log(`the value is ${tabValue}`);

Line range hint 17-45: Consider refactoring this function expression to an arrow function for consistency and modern JavaScript practices.

- it("1. Input widget test with default value from table widget", function () {
+ it("1. Input widget test with default value from table widget", () => {

Line range hint 12-46: Refactor the outer function expression to an arrow function to maintain consistency and leverage ES6 features.

- describe("Binding the Table and input Widget", { tags: ["@tag.Binding"] }, function () {
+ describe("Binding the Table and input Widget", { tags: ["@tag.Binding"] }, () => {
app/client/cypress/e2e/Regression/ClientSide/Binding/TableV2Widgets_NavigateTo_Validation_spec.js (2)

Line range hint 34-59: Refactor this function expression to an arrow function to maintain consistency and leverage ES6 features.

- it("1. Create MyPage and validate if its successfully created", function () {
+ it("1. Create MyPage and validate if its successfully created", () => {

Line range hint 61-67: Refactor this function expression to an arrow function for consistency and modern JavaScript practices.

- it("2. Validate NavigateTo Page functionality ", function () {
+ it("2. Validate NavigateTo Page functionality ", () => {

@NandanAnantharamu NandanAnantharamu added ok-to-test Required label for CI and removed ok-to-test Required label for CI labels May 30, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range and nitpick comments (4)
app/client/cypress/e2e/Regression/ServerSide/QueryPane/AddWidget_spec.js (1)

Line range hint 12-36: Consider converting this function expression to an arrow function to maintain consistency and leverage lexical scoping.

- function () {
+ () => {
app/client/cypress/e2e/Regression/ServerSide/QueryPane/AddWidgetTableAndBind_spec.js (1)

Line range hint 20-90: Consider converting this function expression to an arrow function to maintain consistency and leverage lexical scoping.

- function () {
+ () => {
app/client/cypress/e2e/Regression/ClientSide/Binding/JSObject_Postgress_Table_spec.js (1)

Line range hint 14-102: Consider converting this function expression to an arrow function to maintain consistency and leverage lexical scoping.

- function () {
+ () => {
app/client/cypress/e2e/Regression/ClientSide/Widgets/Migration_Spec.js (1)

Line range hint 16-315: Consider converting this function expression to an arrow function to maintain consistency and leverage lexical scoping.

- function () {
+ () => {

@NandanAnantharamu NandanAnantharamu added ok-to-test Required label for CI and removed ok-to-test Required label for CI labels May 30, 2024
@NandanAnantharamu NandanAnantharamu merged commit 7945d7e into release May 31, 2024
217 of 221 checks passed
@NandanAnantharamu NandanAnantharamu deleted the test/removeSelectedRowCommandEE branch May 31, 2024 08:31
@coderabbitai coderabbitai bot mentioned this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Required label for CI skip-changelog Adding this label to a PR prevents it from being listed in the changelog Test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants