thefrontside / thefrontside/interactors
There is no way to get a value from interactor by using `cy.do`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 36
- Forks
- 2
- Avg merge
- 4m
- Merged PRs (30d)
- 2
Description
Intreactors have ability to read values from filters by using read function:
await read(TextField('Username'), 'value')
Or by calling filters
await TextField('Username').value()
But if we try to use it in cypress:
cy
.do(TextField('Username').value())
.then(($value) => { /* $value is undefined */ })
We can't get value back and use it in our assertions.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Cypress cy.do entry point and compare it with the interactor read and filter value entry points shown in the issue. Trace how the result reaches the following then callback; done means the value is available there for assertions. The issue names no files or tests, so locate the Cypress integration coverage before making changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cypress, typescript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100