bahmutov / bahmutov/cyclope

Keep track of the parent element selector

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
15
Forks
3
PR merge metrics
No merged PRs in 30d

Description

When using `cyclope` as a child command, form the element selector automatically

```js
// get an image of the todos element
// instead of this
cy.get('.todos').cyclope('todos.png', {
elementSelector: '.todos',
})
// automatically limit the image to ".todos"
cy.get('.todos').cyclope('todos.png')
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start from the Cypress child-command example using `cy.get('.todos').cyclope(...)` and trace how the command handles its options. Verify that omitting `elementSelector` uses the parent `.todos` selector while an explicit selector remains supported; the example should produce an image limited to `.todos`.

Written by the indexing model from the issue text.

Assessment

Tech stack
cypress, javascript
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.