Possible API improvement
See original GitHub issueThe current testSelector API feels a little repetitive since it repeats the word selector twice.
find(testSelector('selector', 'post-title')) // => find('[data-test-selector="post-title"]')
It would be nice if testSelector('post-title')
would return [data-test-selector="post-title"]
, but I know that would introduce a breaking change. I’m wondering if there’s another more concise helper we can use… maybe one of the following would be suitable?
testElement('post-title') // => [data-test-selector="post-title"]
testData('post-title') // => [data-test-selector="post-title"]
testAttribute('post-title') // => [data-test-selector="post-title"]
Let me know what you think and if you like any of the above. I’ll PR if you’re ok with it.
PS Thanks for the amazing addon!
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
5 tips for a well-prepared API
In this article, we present 5 good API preparation practices that will ... identify places that need optimization, repair and improvement.
Read more >Understanding Google's API Improvement Proposals System
When an organization uses more than one Application Programming Interface (API), API governance and management becomes far more important.
Read more >5 Tips to Optimize Your API's Performance - LoadNinja
#1. Cache Requests. Caching is one of the best ways to improve API performance. If you have requests that frequently produce the same...
Read more >API Improvement Proposals
API Improvement Proposals. Focused design documents for flexible API development ... AIPs are design documents that summarize Google's API design decisions.
Read more >API Improvement Proposals: Google's Take on the API Style ...
Google's API Improvement Proposals are a unique take on the style guide, leveraging GitHub to enable collaborativeness and iterative ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh nice find @pdud. This works perfectly. I’ll close this issue.
Thanks for the feedback and advice @marcoow
Ah makes sense.
I’ll PR this sometime in the next few days.