fix: BottomPane folder name case fix#37907
Conversation
WalkthroughThe changes in this pull request involve significant modifications to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Outside diff range and nitpick comments (2)
app/client/cypress/support/Pages/IDE/Bottompane/Response.ts (2)
25-32: Consider removing deprecated methodsThe methods
getResponseTypeSelectorandswitchResponseTypeare marked as deprecated. If they're no longer in use, consider removing them to clean up the codebase.
43-43: Typo in method nameselectResponseResponseTypeFromMenuThe method name seems to have a redundant "Response". Renaming it to
selectResponseTypeFromMenuwould enhance clarity.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
app/client/cypress/support/Pages/IDE/Bottompane/Response.ts(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
app/client/cypress/support/Pages/IDE/Bottompane/Response.ts (1)
Pattern app/client/cypress/**/**.*: Review the following e2e test code written using the Cypress test library. Ensure that:
- Follow best practices for Cypress code and e2e automation.
- Avoid using cy.wait in code.
- Avoid using cy.pause in code.
- Avoid using agHelper.sleep().
- Use locator variables for locators and do not use plain strings.
- Use data-* attributes for selectors.
- Avoid Xpaths, Attributes and CSS path.
- Avoid selectors like .btn.submit or button[type=submit].
- Perform logins via API with LoginFromAPI.
- Perform logout via API with LogOutviaAPI.
- Perform signup via API with SignupFromAPI.
- Avoid using it.only.
- Avoid using after and aftereach in test cases.
- Use multiple assertions for expect statements.
- Avoid using strings for assertions.
- Do not use duplicate filenames even with different paths.
- Avoid using agHelper.Sleep, this.Sleep in any file in code.
| /** @deprecated */ | ||
| responseType(type: string): string { | ||
| return `//div[@data-testid='t--response-tab-segmented-control']//span[text()='${type}']`; | ||
| }, |
There was a problem hiding this comment.
🛠️ Refactor suggestion
Avoid using cy.xpath() in selectors
The method responseType uses XPath selectors via cy.xpath(), which is discouraged. Even in deprecated code, it's best to avoid practices that conflict with our coding guidelines.
Description
PR to fix BottomPane case issue
Fixes #
Issue Numberor
Fixes
Issue URLWarning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags="@tag.Sanity"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/12134932400
Commit: 2955277
Cypress dashboard.
Tags:
@tag.SanitySpec:
Tue, 03 Dec 2024 08:11:47 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
New Features
Bug Fixes
Documentation