Skip to content
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

Retry cy.focused() command #409

Closed
jennifer-shehane opened this issue Feb 3, 2017 · 1 comment
Closed

Retry cy.focused() command #409

jennifer-shehane opened this issue Feb 3, 2017 · 1 comment
Assignees
Labels
pkg/driver This is due to an issue in the packages/driver directory

Comments

@jennifer-shehane
Copy link
Member

I have this test in cypress that’s supposed to check that a certain element is focused.

Example Test
cy.focused().should('have.value', 'foobar')

But it’s really brittle since I'm testing it on a modal that may or may not have fully animated into the screen.

We need to have the cy.focused() command retry the assertion until it passes or times out at the duration of it's command timeout. Currently, it checks against the assertion once then passes or fails.

@jennifer-shehane jennifer-shehane added type: unexpected behavior User expected result, but got another pkg/driver This is due to an issue in the packages/driver directory and removed type: unexpected behavior User expected result, but got another labels Feb 3, 2017
@brian-mann
Copy link
Member

The code for this is done, but this has yet to be released. We'll update the issue and reference the changelog when it's released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/driver This is due to an issue in the packages/driver directory
Projects
None yet
Development

No branches or pull requests

2 participants