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

Tests pass only in debug mode (with --browsers=Chrome flag) #3830

Open
skyRoma opened this issue Jan 23, 2023 · 0 comments
Open

Tests pass only in debug mode (with --browsers=Chrome flag) #3830

skyRoma opened this issue Jan 23, 2023 · 0 comments

Comments

@skyRoma
Copy link

skyRoma commented Jan 23, 2023

Hi Guys! My angular tests pass only when chrome is running.

In my tests, I operate with the position of the element on the page using the getBoundingClientRect, Also I use scrolling to the desired element using scrollIntoView. But the tests pass only for those elements that are visible without scrolling (but pass! it means that these methods above are actually working with the ChromeHeadless flag).

Expected:
Tests pass with nx test --browsers=Chrome and nx test --browsers=ChromeHeadless

Actual:
Tests pass only with nx test --browsers=Chrome

Could you possible suggest any advice?
Thank you

@skyRoma skyRoma changed the title Tests pass only in debug mode Tests pass only in debug mode (with --browsers=Chrome flag) Jan 23, 2023
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

No branches or pull requests

1 participant