thefrontside / thefrontside/interactors

There is no way to get a value from interactor by using `cy.do`

Open
#110 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.