-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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: disable fully parallel #8522
Conversation
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
WalkthroughWalkthroughThe recent updates to the Playwright test scripts and configuration files aim to enhance test reliability and execution behavior. Changes include adding wait times for proper UI element handling, adjusting test execution to run sequentially, and refining response handling for improved test stability and accuracy. Changes
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? TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this 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
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- tests/playwright/tests/db/features/multiFieldEditor.spec.ts (1 hunks)
Additional comments not posted (1)
tests/playwright/tests/db/features/multiFieldEditor.spec.ts (1)
268-269
: LGTM! The added delay should help stabilize the test by ensuring UI updates are processed before saving.
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
There was a problem hiding this 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
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- tests/playwright/playwright.config.ts (1 hunks)
Files skipped from review due to trivial changes (1)
- tests/playwright/playwright.config.ts
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
There was a problem hiding this 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
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- tests/playwright/pages/Dashboard/Details/FieldsPage.ts (1 hunks)
Additional comments not posted (1)
tests/playwright/pages/Dashboard/Details/FieldsPage.ts (1)
243-247
: Changes to thesaveChanges
method align with the PR objectives to adjust the wait time and update the API endpoint.Verification successful
The search results indicate that the new API endpoint
/api/v1/db/meta/tables/
is used in multiple files across the codebase, including theFieldsPage.ts
file. This confirms that the endpoint is consistently used and integrated within the project.
tests/playwright/pages/Dashboard/ViewSidebar/index.ts
tests/playwright/pages/Dashboard/TreeView.ts
tests/playwright/pages/Dashboard/Sidebar/index.ts
tests/playwright/pages/Dashboard/Details/FieldsPage.ts
- Various files in
packages/nocodb/tests/unit/
- Various files in
packages/nocodb/src/controllers/
- Various files in
packages/nocodb-sdk/src/lib/
This widespread usage suggests that the new endpoint is correctly implemented and aligns with the project's structure.
Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the new API endpoint and response structure in the `saveChanges` method. # Test: Search for the usage of the new API endpoint. Expect: Only occurrences of the new endpoint. rg --type typescript $'api/v1/db/meta/tables/'Length of output: 80
Script:
#!/bin/bash # Description: Verify the new API endpoint and response structure in the `saveChanges` method. # Test: Search for the usage of the new API endpoint. Expect: Only occurrences of the new endpoint. rg 'api/v1/db/meta/tables/' --glob '*.ts'Length of output: 6892
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
There was a problem hiding this 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
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- tests/playwright/pages/Dashboard/common/Topbar/index.ts (1 hunks)
Additional comments not posted (2)
tests/playwright/pages/Dashboard/common/Topbar/index.ts (2)
83-88
: LGTM! Ensure the new URL and response structure are correctly implemented in the backend.Verification successful
The search results indicate multiple instances of the URL pattern
/api/v1/db/data/noco/
in various test files, suggesting that the backend implementation is being tested. However, to ensure the response structure is correctly handled, we need to verify that the response contains the expectedlist
field.Let's generate a script to search for the handling of the
list
field in the backend code.
The search results show numerous instances of the
list
field being used in various contexts, including tests and backend services. This indicates that thelist
field is indeed a recognized and handled part of the response structure in the backend.Given this evidence, it appears that the backend correctly handles the
list
field in responses, aligning with the changes made in theopenDataTab
method.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the new URL and response structure for `openDataTab`. # Test: Search for backend implementations of the new URL. Expect: Correct handling of the 'list' response. rg --type typescript $'api/v1/db/data/noco/'Length of output: 78
Script:
#!/bin/bash # Description: Verify the new URL and response structure for `openDataTab`. # Test: Search for backend implementations of the new URL. Expect: Correct handling of the 'list' response. rg --type ts 'api/v1/db/data/noco/'Length of output: 22875
Script:
#!/bin/bash # Description: Verify the handling of the 'list' field in the backend response. # Test: Search for the 'list' field in the backend code to ensure it is correctly handled. rg --type ts 'list' --glob '!node_modules'Length of output: 188404
73-78
: LGTM! Ensure the new URL and response structure are correctly implemented in the backend.
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
There was a problem hiding this 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
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- tests/playwright/tests/db/features/erd.spec.ts (3 hunks)
Files skipped from review due to trivial changes (1)
- tests/playwright/tests/db/features/erd.spec.ts
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
There was a problem hiding this 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
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- tests/playwright/pages/Dashboard/WebhookForm/index.ts (1 hunks)
- tests/playwright/pages/Dashboard/common/Topbar/index.ts (1 hunks)
- tests/playwright/tests/db/features/webhook.spec.ts (1 hunks)
Additional comments not posted (4)
tests/playwright/pages/Dashboard/common/Topbar/index.ts (2)
72-82
: RefactoropenDetailedTab
to improve reliability by waiting for specific responses.Consider adding a comment explaining why this conditional wait is necessary, as it helps maintain the code's readability and understandability.
87-92
: RefactoropenDataTab
to enhance test stability by incorporating response waiting.Adding a brief comment about the purpose of waiting for a specific response could enhance code clarity and maintainability.
tests/playwright/pages/Dashboard/WebhookForm/index.ts (1)
119-120
: Enhance thedelete
method with an optionalwfr
parameter to control response waiting.Consider documenting the
wfr
parameter in the method's docstring to clarify its purpose and usage.tests/playwright/tests/db/features/webhook.spec.ts (1)
307-308
: Utilize thewfr
parameter indelete
calls to optimize test execution speed.Verify that setting
wfr
tofalse
does not negatively impact the reliability of the tests, especially in environments with variable response times.
Change Summary
Provide summary of changes with issue number if any.
Change type
Test/ Verification
Provide summary of changes.
Additional information / screenshots (optional)
Anything for maintainers to be made aware of