-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
chore: Map Chart Spec #36343
chore: Map Chart Spec #36343
Conversation
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/10882087903. |
Deploy-Preview-URL: https://ce-36343.dp.appsmith.com |
WalkthroughThe changes in this pull request enhance the Map Chart Widget tests within the Cypress framework. Key updates include modifications to element selection methods, improvements in assertions for title updates and widget visibility, and adjustments to the data points used in interactions. Additionally, the Changes
Possibly related PRs
Suggested labels
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (1)
Files skipped from review due to trivial changes (1)
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
|
/ci-test-limit-count run_count=1 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/10884305172. |
|
||
describe( | ||
"Map Chart Widget Functionality", | ||
{ tags: ["@tag.Widget", "@tag.Maps", "@tag.Visual"] }, | ||
function () { | ||
it("1. Drag and drop a Map Chart widget and verify", function () { | ||
it.only("1. Drag and drop a Map Chart widget and verify", function () { |
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.
Please remove only
.
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.
Done.
@@ -14,13 +14,13 @@ import EditorNavigation, { | |||
|
|||
const _mapChartCaption = "text:last-child"; | |||
const _mapChartPlot = (text: string) => | |||
"//text()[contains(., '" + text + "')]/.."; | |||
`//*[name()='svg']//*[name()='text' and contains(text(), '${text}')]`; |
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.
Can we please use data-testid or css locator here?
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.
Nope. The rendered component is coming from 3rd library. Not much control over it.
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.
Let's optimise this then. Discussing with you offline.
/ci-test-limit-count run_count=1 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/10884360710. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10884305172.
|
/ci-test-limit-count run_count=15 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/10884698717. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10884360710.
|
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10884698717.
|
/ci-test-limit-count run_count=15 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/10897233252. |
@@ -14,13 +14,13 @@ import EditorNavigation, { | |||
|
|||
const _mapChartCaption = "text:last-child"; | |||
const _mapChartPlot = (text: string) => | |||
"//text()[contains(., '" + text + "')]/.."; | |||
`//*[name()='svg']//*[name()='text' and contains(text(), '${text}')]`; |
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.
Let's optimise this then. Discussing with you offline.
/ci-test-limit-count run_count=1 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/10898281289. |
/ci-test-limit-count run_count=1 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/10898514979. |
Summary by CodeRabbit
New Features
mapChartWidget
locator for improved test functionality.Bug Fixes
Chores
Warning
Tests have not run on the HEAD 0a1afd3 yet
Tue, 17 Sep 2024 07:24:36 UTC