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

add tests for select2 with remote data source #516

Merged
merged 1 commit into from
Jul 6, 2020

Conversation

randomsync
Copy link
Contributor

Add cypress tests to demonstrate selecting select2 values when data is fetched from a remote data source.

@CLAassistant
Copy link

CLAassistant commented Jul 4, 2020

CLA assistant check
All committers have signed the CLA.

@randomsync
Copy link
Contributor Author

randomsync commented Jul 4, 2020

@bahmutov This PR adds the select2 tests using remote data source, and also demonstrates the issue that selecting the values works inconsistently. I've tried different approaches which I've commented out. The approach to validate that the value be.visible before clicking works inconsistently.

When it doesn't work, it's not able to find the dropdown values:

image

Here's 1 of the times I was able to get the error while running cypress:run:
spec

@bahmutov bahmutov marked this pull request as ready for review July 6, 2020 14:09
@bahmutov bahmutov self-requested a review July 6, 2020 14:09
Copy link
Contributor

@bahmutov bahmutov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, good example. To make it work I will apply principles described in https://on.cypress.io/retry-ability in a separate PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants