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 test for DataIdentifier #32752

Merged
merged 6 commits into from
Apr 22, 2024
Merged

Conversation

NandanAnantharamu
Copy link
Collaborator

@NandanAnantharamu NandanAnantharamu commented Apr 18, 2024

DataIdentifier test fix
app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/DataIdentifier_spec.ts

RCA:
Exeternal API was the main reason for failure

  1. external API was used
  2. Replaced with TED API

Removed unwanted wait

Summary by CodeRabbit

Summary by CodeRabbit

  • Bug Fixes
    • Improved the reliability of list loading in automated tests by removing unnecessary delays.
    • Enhanced data processing in lists by modifying the data configuration format.
    • Updated test configuration to use the correct spec file path for limited tests.
    • Added interactions with EditorNavigation and propPane for selecting entities and properties in the test scenario.
    • Added a new declaration _dropdownControlError to the PropertyPane class, representing a selector for dropdown control errors.

Copy link
Contributor

coderabbitai bot commented Apr 18, 2024

Walkthrough

Walkthrough

The update focuses on enhancing test reliability in the Cypress test suite by removing a redundant sleep function call in the test setup. This change aims to streamline test execution and mitigate potential flakiness associated with list loading. Additionally, interactions with EditorNavigation and propPane have been incorporated for selecting entities and properties in test scenarios.

Changes

File Path Change Summary
.../cypress/e2e/Regression/ClientSide/Widgets/ListV2/DataIdentifier_spec.ts Removed a sleep function call in the before hook. Added interactions with EditorNavigation and propPane.
.../cypress/config/limited_tests_config.json Updated spec file path from Fork_Template_spec.js to DataIdentifier_spec.ts.

Possibly related issues


Recent Review Details

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between e780f8f and 49cadfe.
Files selected for processing (2)
  • app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/DataIdentifier_spec.ts (1 hunks)
  • app/client/cypress/support/Pages/PropertyPane.ts (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/DataIdentifier_spec.ts
Additional comments not posted (1)
app/client/cypress/support/Pages/PropertyPane.ts (1)

175-175: Ensure the new selector _dropdownControlError matches the expected HTML structure and is used appropriately within the class.


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.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @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.

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

/ci-test-limit

Copy link

Copy link

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

@NandanAnantharamu
Copy link
Collaborator Author

/ci-test-limit

2 similar comments
@NandanAnantharamu
Copy link
Collaborator Author

/ci-test-limit

@NandanAnantharamu
Copy link
Collaborator Author

/ci-test-limit

Copy link

Copy link

Copy link

Copy link

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

Copy link

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

Copy link

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

@@ -25,7 +25,7 @@
"triggeredItemView": "{{{}}}",
"widgetName": "List1",
"requiresFlatWidgetChildren": true,
"listData": "{{Api1.data}}",
"listData": "[{{Api1.data}}]",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is Api.data not returning an array that we need to introduce this extra square brackets?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Without Big bracket i get this error message
Screenshot 2024-04-18 at 9 26 52 PM

With Bracket which makes it array dismisses that error
Screenshot 2024-04-18 at 9 27 09 PM

@@ -38,7 +38,6 @@ describe(
() => {
before(() => {
agHelper.AddDsl("Listv2/ListV2WithNullPrimaryKey");
agHelper.Sleep(3000); //for List to load for CI flakyness
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, the RCA doesn't cover the data identifier issue and the solution for it. Could you please add some background? Thanks!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i have added more details with snapshots

@NandanAnantharamu
Copy link
Collaborator Author

/ci-test-limit

Copy link

Copy link

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

@NandanAnantharamu
Copy link
Collaborator Author

/ci-test-limit runId =8750959332

@NandanAnantharamu
Copy link
Collaborator Author

/ci-test-limit runId =8750959332

3 similar comments
@NandanAnantharamu
Copy link
Collaborator Author

/ci-test-limit runId =8750959332

@NandanAnantharamu
Copy link
Collaborator Author

/ci-test-limit runId =8750959332

@NandanAnantharamu
Copy link
Collaborator Author

/ci-test-limit runId =8750959332

Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

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

Copy link

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

Copy link

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

Copy link

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

Copy link

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

@NandanAnantharamu NandanAnantharamu changed the title test: updated test for DateIdentifier test: updated test for DataIdentifier Apr 22, 2024
@trishaanand trishaanand merged commit 16874f4 into release Apr 22, 2024
21 checks passed
@trishaanand trishaanand deleted the test/fixDataIdentifier branch April 22, 2024 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

None yet

3 participants