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

Clean up Cypress E2E tests #580

Merged
merged 4 commits into from Feb 6, 2023
Merged

Clean up Cypress E2E tests #580

merged 4 commits into from Feb 6, 2023

Conversation

oo-bldrs
Copy link
Contributor

@oo-bldrs oo-bldrs commented Feb 6, 2023

PR originally sourced from Pablo to remove explicit timeouts and fix the improper passing of a property.

The additional change from me is to utilize a test ID for finding the Open IFC button UI element for testing rather than the previous asynchronous nature.

pablo-mayrgundter and others added 2 commits February 2, 2023 18:26
There is an open issue within the cypress-real-events library which
states that the `.realHover()` function is no longer compatible with
Google Chrome after version 100[1].

So we instead proceed with refactoring that test to use test IDs to
match the desired HTML element.

The way this failure shows up during testing is the first use of the
function in question works, but any subsequent usage by other test
cases within the same run will not work.

However, if you retry the test run, it will give a "false positive"
as long as you run within the same Cypress + Google Chrome process.

False positive is in quotes because if you run it again within the
same process pair, it works but if you execute on a different test
runner, you will get a failure.

An example of this consistent failure would be executing this test
suite in GitHub Actions where each run is handled by a new test
runner with a completely different process space.

1: dmtrKovalenko/cypress-real-events#247
@netlify
Copy link

netlify bot commented Feb 6, 2023

Deploy Preview for bldrs-share ready!

Name Link
🔨 Latest commit f95e5ba
🔍 Latest deploy log https://app.netlify.com/sites/bldrs-share/deploys/63e143ab17ab2100099a8a89
😎 Deploy Preview https://deploy-preview-580--bldrs-share.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@oo-bldrs oo-bldrs merged commit 61482ac into bldrs-ai:main Feb 6, 2023
@oo-bldrs oo-bldrs deleted the use-test-id branch February 6, 2023 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants